Click here to Skip to main content
15,913,465 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMixing C++ and C code - HELP Pin
Member 62566623-Mar-04 5:15
Member 62566623-Mar-04 5:15 
GeneralRe: Mixing C++ and C code - HELP Pin
Member 62566623-Mar-04 5:20
Member 62566623-Mar-04 5:20 
GeneralRe: Mixing C++ and C code - HELP Pin
Maximilien23-Mar-04 5:44
Maximilien23-Mar-04 5:44 
GeneralRe: Mixing C++ and C code - HELP Pin
Pedro Ruiz23-Mar-04 7:30
Pedro Ruiz23-Mar-04 7:30 
GeneralRe: Mixing C++ and C code - HELP Pin
Member 62566623-Mar-04 7:36
Member 62566623-Mar-04 7:36 
GeneralRe: Mixing C++ and C code - HELP Pin
Pedro Ruiz23-Mar-04 7:48
Pedro Ruiz23-Mar-04 7:48 
GeneralRe: Mixing C++ and C code - HELP Pin
Member 62566623-Mar-04 7:35
Member 62566623-Mar-04 7:35 
GeneralRe: Mixing C++ and C code - HELP Pin
John R. Shaw23-Mar-04 11:04
John R. Shaw23-Mar-04 11:04 
Here is a possible short cut: If the C code is part of the project then you could just changed the extention to cpp. Then you will not need to modify it or the header, unless the C code is doing conversions or something else that the C++ compiler wants you to make sure you know what you are doing. Remember that C++ is a superset of C and therefore your C code can be compiled as C++. If you do not whish to change the file extesion then you will need to use the extern "C" any where there is an external C function declared.

For future reference you may want to write your C code and test it then change the extesion to cpp and then recompile in order is see where the code can be improved. Make correction then change the extension back to C and retest. This will help improve your C coding and understanding of the C language.

Well, good luck.

INTP
Generaldll not terminating correctly Pin
BlackDice23-Mar-04 5:10
BlackDice23-Mar-04 5:10 
GeneralRe: dll not terminating correctly Pin
Blake Miller24-Mar-04 5:54
Blake Miller24-Mar-04 5:54 
GeneralLoad an image Pin
rrrado23-Mar-04 5:09
rrrado23-Mar-04 5:09 
GeneralRe: Load an image Pin
Jörgen Sigvardsson23-Mar-04 5:22
Jörgen Sigvardsson23-Mar-04 5:22 
GeneralRe: Load an image Pin
rrrado23-Mar-04 21:02
rrrado23-Mar-04 21:02 
GeneralRe: Load an image Pin
RadioShark23-Mar-04 6:21
RadioShark23-Mar-04 6:21 
GeneralRe: Load an image Pin
Jörgen Sigvardsson23-Mar-04 6:31
Jörgen Sigvardsson23-Mar-04 6:31 
QuestionMouse direction settings? Pin
DaFrawg23-Mar-04 4:35
DaFrawg23-Mar-04 4:35 
GeneralDisplaying CPropertySheet in a Dialog Pin
mmica23-Mar-04 4:09
mmica23-Mar-04 4:09 
GeneralRe: Displaying CPropertySheet in a Dialog Pin
David Crow23-Mar-04 4:16
David Crow23-Mar-04 4:16 
GeneralRe: Displaying CPropertySheet in a Dialog Pin
mmica23-Mar-04 4:29
mmica23-Mar-04 4:29 
GeneralRe: Displaying CPropertySheet in a Dialog Pin
David Crow23-Mar-04 4:36
David Crow23-Mar-04 4:36 
GeneralRe: Displaying CPropertySheet in a Dialog Pin
Ravi Bhavnani23-Mar-04 11:11
professionalRavi Bhavnani23-Mar-04 11:11 
QuestionWho want to be a millionaire? Pin
nicolas thompson23-Mar-04 4:02
sussnicolas thompson23-Mar-04 4:02 
AnswerRe: Who want to be a millionaire? Pin
Ravi Bhavnani23-Mar-04 11:27
professionalRavi Bhavnani23-Mar-04 11:27 
GeneralSimple C question Pin
kfaday23-Mar-04 3:48
kfaday23-Mar-04 3:48 
GeneralRe: Simple C question Pin
Prakash Nadar23-Mar-04 3:52
Prakash Nadar23-Mar-04 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.