Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: text counter problem Pin
si_6919-Jun-03 1:05
si_6919-Jun-03 1:05 
GeneralRe: text counter problem Pin
tareqsiraj19-Jun-03 1:13
tareqsiraj19-Jun-03 1:13 
GeneralRe: text counter problem Pin
Cedric Moonen19-Jun-03 1:38
Cedric Moonen19-Jun-03 1:38 
GeneralRe: text counter problem Pin
peterchen19-Jun-03 1:45
peterchen19-Jun-03 1:45 
GeneralRe: text counter problem Pin
Ryan Binns19-Jun-03 4:28
Ryan Binns19-Jun-03 4:28 
QuestionHow to insert a c Program into a MFC project? Pin
dadacncn19-Jun-03 0:39
dadacncn19-Jun-03 0:39 
AnswerRe: How to insert a c Program into a MFC project? Pin
Dominik Reichl19-Jun-03 1:22
Dominik Reichl19-Jun-03 1:22 
AnswerRe: How to insert a c Program into a MFC project? Pin
John R. Shaw19-Jun-03 7:17
John R. Shaw19-Jun-03 7:17 
1) The following goes in your header file or if use to surround the prototypes if you place them in one of your 'C++' files:
// Header file for 'C' code
#ifdef __cplusplus
extern "C" {   // Tells compiler these are 'C' prototypes not 'C++'
#endif
// Function prototypes go here
#ifdef __cplusplus
}
#endif 

2) Now just add the 'C' file to your work space the same way that you would add a 'C++' file. The compiler knows that is is a 'C' and will compile it as 'C'.

OOORRRR

3) You can just change the .c extension to .cpp and the file will be compiled ass 'C++' whith out having to modify any code at all.

Trust in the code Luke. Yea right!
Generalprob. regarding release and debug build Pin
Chanda.com19-Jun-03 0:34
Chanda.com19-Jun-03 0:34 
GeneralRe: prob. regarding release and debug build Pin
parths19-Jun-03 0:42
parths19-Jun-03 0:42 
GeneralRe: prob. regarding release and debug build Pin
Chanda.com19-Jun-03 0:47
Chanda.com19-Jun-03 0:47 
GeneralRe: prob. regarding release and debug build Pin
User 665819-Jun-03 0:52
User 665819-Jun-03 0:52 
GeneralRe: prob. regarding release and debug build Pin
tareqsiraj19-Jun-03 1:00
tareqsiraj19-Jun-03 1:00 
GeneralRe: prob. regarding release and debug build Pin
Roger Allen19-Jun-03 3:22
Roger Allen19-Jun-03 3:22 
GeneralRe: prob. regarding release and debug build Pin
AlexO19-Jun-03 3:28
AlexO19-Jun-03 3:28 
GeneralRe: prob. regarding release and debug build Pin
Jonathan Craig20-Jun-03 7:12
Jonathan Craig20-Jun-03 7:12 
GeneralBitmap Pin
black&white19-Jun-03 0:24
black&white19-Jun-03 0:24 
GeneralRe: Bitmap Pin
KarstenK19-Jun-03 0:33
mveKarstenK19-Jun-03 0:33 
GeneralRe: Bitmap Pin
Anonymous19-Jun-03 5:28
Anonymous19-Jun-03 5:28 
GeneralRe: Bitmap Pin
basementman19-Jun-03 8:14
basementman19-Jun-03 8:14 
GeneralRe: Bitmap Pin
basementman19-Jun-03 8:17
basementman19-Jun-03 8:17 
GeneralRe: Bitmap Pin
Anonymous19-Jun-03 8:27
Anonymous19-Jun-03 8:27 
GeneralRe: Bitmap Pin
basementman19-Jun-03 8:29
basementman19-Jun-03 8:29 
GeneralRe: Bitmap Pin
Anonymous19-Jun-03 9:26
Anonymous19-Jun-03 9:26 
GeneralOut of heap space Pin
Jorgen E.19-Jun-03 0:10
Jorgen E.19-Jun-03 0:10 

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.