Click here to Skip to main content
15,905,590 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 21:53
funwithdolphin31-Aug-10 21:53 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 23:24
funwithdolphin31-Aug-10 23:24 
QuestionReplace exe in Install shield Pin
raju_shiva30-Aug-10 0:33
raju_shiva30-Aug-10 0:33 
AnswerRe: Replace exe in Install shield Pin
ThatsAlok30-Jun-11 23:59
ThatsAlok30-Jun-11 23:59 
QuestionHow to achieve pushbutton type effect using bitmaps Pin
sayonee29-Aug-10 22:23
sayonee29-Aug-10 22:23 
AnswerRe: How to achieve pushbutton type effect using bitmaps Pin
Sauro Viti30-Aug-10 6:43
professionalSauro Viti30-Aug-10 6:43 
QuestionMultiple includes Pin
Shy Agam29-Aug-10 21:49
Shy Agam29-Aug-10 21:49 
AnswerRe: Multiple includes Pin
Cedric Moonen29-Aug-10 22:38
Cedric Moonen29-Aug-10 22:38 
Shy Agam wrote:
However, this somehow causes a problem if classes from the same .h file should be used by different .cpp files.
The first .cpp file including the .h file gets compiled, but the others throw an "undefined reference" compile error.
It's as if I never included the .h file on the other files.


That's not how include guards work. They prevent including the same header file in one compilation unit (thus, one cpp file) but doesn't prevent multiple cpp files to include the same header file.
Cédric Moonen
Software developer

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

AnswerRe: Multiple includes Pin
CPallini29-Aug-10 22:46
mveCPallini29-Aug-10 22:46 
GeneralRe: Multiple includes Pin
Shy Agam29-Aug-10 23:06
Shy Agam29-Aug-10 23:06 
GeneralRe: Multiple includes Pin
Cedric Moonen29-Aug-10 23:53
Cedric Moonen29-Aug-10 23:53 
GeneralRe: Multiple includes [modified] Pin
Shy Agam30-Aug-10 0:10
Shy Agam30-Aug-10 0:10 
GeneralRe: Multiple includes Pin
Cedric Moonen30-Aug-10 0:51
Cedric Moonen30-Aug-10 0:51 
GeneralRe: Multiple includes Pin
Richard MacCutchan30-Aug-10 2:39
mveRichard MacCutchan30-Aug-10 2:39 
GeneralRe: Multiple includes Pin
Paul Michalik30-Aug-10 9:42
Paul Michalik30-Aug-10 9:42 
GeneralRe: Multiple includes Pin
Richard MacCutchan30-Aug-10 21:50
mveRichard MacCutchan30-Aug-10 21:50 
GeneralRe: Multiple includes Pin
Paul Michalik30-Aug-10 23:30
Paul Michalik30-Aug-10 23:30 
GeneralRe: Multiple includes Pin
Richard MacCutchan31-Aug-10 0:41
mveRichard MacCutchan31-Aug-10 0:41 
GeneralRe: Multiple includes Pin
Shy Agam30-Aug-10 21:20
Shy Agam30-Aug-10 21:20 
GeneralRe: Multiple includes Pin
Emilio Garavaglia30-Aug-10 20:18
Emilio Garavaglia30-Aug-10 20:18 
AnswerRe: Multiple includes [modified] Pin
Shy Agam30-Aug-10 22:45
Shy Agam30-Aug-10 22:45 
GeneralRe: Multiple includes Pin
Paul Michalik30-Aug-10 23:49
Paul Michalik30-Aug-10 23:49 
GeneralRe: Multiple includes Pin
Shy Agam30-Aug-10 23:50
Shy Agam30-Aug-10 23:50 
GeneralRe: Multiple includes Pin
Aescleal31-Aug-10 0:30
Aescleal31-Aug-10 0:30 
GeneralRe: Multiple includes Pin
Tim Craig31-Aug-10 8:59
Tim Craig31-Aug-10 8:59 

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.