Click here to Skip to main content
16,010,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SetCapture hell Pin
Andrew Peace6-Nov-01 13:27
Andrew Peace6-Nov-01 13:27 
GeneralRe: SetCapture hell Pin
Jon Hulatt6-Nov-01 22:16
Jon Hulatt6-Nov-01 22:16 
Generalbrowser Pin
6-Nov-01 9:45
suss6-Nov-01 9:45 
General#include "everything.h" Pin
Jamie Hale6-Nov-01 9:18
Jamie Hale6-Nov-01 9:18 
GeneralRe: #include "everything.h" Pin
PJ Arends6-Nov-01 9:31
professionalPJ Arends6-Nov-01 9:31 
GeneralRe: #include "everything.h" Pin
Jamie Hale6-Nov-01 9:36
Jamie Hale6-Nov-01 9:36 
GeneralRe: #include "everything.h" Pin
DanYELL6-Nov-01 13:21
DanYELL6-Nov-01 13:21 
GeneralRe: #include "everything.h" Pin
Steen Krogsgaard6-Nov-01 22:20
Steen Krogsgaard6-Nov-01 22:20 
I often put the includes in the headers themselves, so if A.h is dependent on B.h the #include "A.h" statement would appear in the beginning of B.h. When all the headers are protected by the
#if !defined(_some_unique_preprocessor_symbol)
#define(_some_unique_preprocessor_symbol)


class Myclass : public......

#endif

they'll only get compiled once anyway.

Of course, you can get into problems with finding the right include order and with circular includes, but in my experience this not too common.

Cheers
Steen.

"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
GeneralRe: #include "everything.h" Pin
Tomasz Sowinski7-Nov-01 0:48
Tomasz Sowinski7-Nov-01 0:48 
GeneralRe: #include "everything.h" Pin
Jamie Hale7-Nov-01 4:23
Jamie Hale7-Nov-01 4:23 
GeneralRe: #include "everything.h" Pin
Tomasz Sowinski7-Nov-01 7:19
Tomasz Sowinski7-Nov-01 7:19 
GeneralRe: #include "everything.h" Pin
Jamie Hale7-Nov-01 7:51
Jamie Hale7-Nov-01 7:51 
GeneralRe: #include "everything.h" Pin
Tomasz Sowinski7-Nov-01 8:12
Tomasz Sowinski7-Nov-01 8:12 
GeneralRe: #include "everything.h" Pin
Mukkie7-Nov-01 9:30
Mukkie7-Nov-01 9:30 
Generalread the color Pin
6-Nov-01 8:58
suss6-Nov-01 8:58 
GeneralRe: read the color Pin
Nish Nishant6-Nov-01 9:08
sitebuilderNish Nishant6-Nov-01 9:08 
GeneralRe: read the color Pin
Christian Graus6-Nov-01 10:07
protectorChristian Graus6-Nov-01 10:07 
GeneralReboot windows 95 machines Pin
RobJones6-Nov-01 8:54
RobJones6-Nov-01 8:54 
GeneralRe: Reboot windows 95 machines Pin
Nish Nishant6-Nov-01 9:01
sitebuilderNish Nishant6-Nov-01 9:01 
GeneralRe: Reboot windows 95 machines Pin
RobJones6-Nov-01 9:06
RobJones6-Nov-01 9:06 
GeneralImage Acquisition Pin
Chambers6-Nov-01 7:15
Chambers6-Nov-01 7:15 
GeneralRe: Image Acquisition Pin
Chris Losinger6-Nov-01 7:21
professionalChris Losinger6-Nov-01 7:21 
GeneralRe: Image Acquisition Pin
#realJSOP6-Nov-01 7:46
professional#realJSOP6-Nov-01 7:46 
GeneralRe: Image Acquisition Pin
Chambers7-Nov-01 2:25
Chambers7-Nov-01 2:25 
GeneralRe: Image Acquisition Pin
Chris Losinger7-Nov-01 2:49
professionalChris Losinger7-Nov-01 2:49 

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.