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

C / C++ / MFC

 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 3:51
funwithdolphin31-Aug-10 3:51 
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 
Hello experts,

I recently solved my duplicate includes problem using the #ifndef-#define-#endif pre-processors.

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.

How can I overcome both duplicate includes and single includes problems?

A bit on my workstation:
OS: Ubuntu.
IDE: Eclipse.
Compiler: g++


Thanks in advance,
Shy.
AnswerRe: Multiple includes Pin
Cedric Moonen29-Aug-10 22:38
Cedric Moonen29-Aug-10 22:38 
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 

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.