Click here to Skip to main content
15,867,851 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: syntax error Pin
CPallini5-Apr-10 22:47
mveCPallini5-Apr-10 22:47 
AnswerRe: syntax error Pin
rupeshkp7285-Apr-10 23:07
rupeshkp7285-Apr-10 23:07 
GeneralRe: syntax error Pin
CPallini5-Apr-10 23:20
mveCPallini5-Apr-10 23:20 
GeneralRe: syntax error Pin
rupeshkp7286-Apr-10 0:42
rupeshkp7286-Apr-10 0:42 
GeneralRe: syntax error Pin
CPallini6-Apr-10 0:50
mveCPallini6-Apr-10 0:50 
GeneralRe: syntax error Pin
rupeshkp7286-Apr-10 0:52
rupeshkp7286-Apr-10 0:52 
QuestionMultiple .cpp files Pin
gamefreak22915-Apr-10 21:45
gamefreak22915-Apr-10 21:45 
AnswerRe: Multiple .cpp files Pin
Cedric Moonen5-Apr-10 22:01
Cedric Moonen5-Apr-10 22:01 
I think you don't really understand how to work with multiple cpp files. In fact, the two files are not "executed at the same time". You still have only one main function which will get called when your program start. If you want to call some functions defined in your second cpp file, you have to call them in your main function.

In fact, having multiple cpp files very similar (in the way of calling the functions I mean) as having only one cpp file. It is used to structure your program a bit more nicely (you don't have one huge file with everything in it).
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

GeneralRe: Multiple .cpp files Pin
gamefreak22915-Apr-10 22:14
gamefreak22915-Apr-10 22:14 
GeneralRe: Multiple .cpp files Pin
Cedric Moonen5-Apr-10 22:29
Cedric Moonen5-Apr-10 22:29 
GeneralRe: Multiple .cpp files Pin
gamefreak22915-Apr-10 22:31
gamefreak22915-Apr-10 22:31 
GeneralRe: Multiple .cpp files Pin
Cedric Moonen5-Apr-10 22:41
Cedric Moonen5-Apr-10 22:41 
GeneralRe: Multiple .cpp files Pin
gamefreak22915-Apr-10 22:49
gamefreak22915-Apr-10 22:49 
AnswerRe: Multiple .cpp files Pin
KarstenK5-Apr-10 22:38
mveKarstenK5-Apr-10 22:38 
GeneralRe: Multiple .cpp files Pin
gamefreak22915-Apr-10 22:45
gamefreak22915-Apr-10 22:45 
GeneralRe: Multiple .cpp files Pin
KarstenK5-Apr-10 22:59
mveKarstenK5-Apr-10 22:59 
GeneralRe: Multiple .cpp files Pin
gamefreak22915-Apr-10 23:40
gamefreak22915-Apr-10 23:40 
GeneralRe: Multiple .cpp files Pin
Emilio Garavaglia6-Apr-10 2:20
Emilio Garavaglia6-Apr-10 2:20 
GeneralRe: Multiple .cpp files Pin
gamefreak22916-Apr-10 6:47
gamefreak22916-Apr-10 6:47 
GeneralRe: Multiple .cpp files Pin
Emilio Garavaglia6-Apr-10 20:36
Emilio Garavaglia6-Apr-10 20:36 
QuestionPermutations with repetition Pin
MsmVc5-Apr-10 20:59
MsmVc5-Apr-10 20:59 
AnswerRe: Permutations with repetition Pin
CPallini5-Apr-10 21:49
mveCPallini5-Apr-10 21:49 
GeneralRe: Permutations with repetition [modified] Pin
MsmVc5-Apr-10 21:58
MsmVc5-Apr-10 21:58 
GeneralRe: Permutations with repetition Pin
CPallini5-Apr-10 22:06
mveCPallini5-Apr-10 22:06 
GeneralRe: Permutations with repetition Pin
MsmVc5-Apr-10 22:07
MsmVc5-Apr-10 22:07 

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.