From: Robby on 3 Jan 2010 22:38 It all makes sence. Thankyou guys. -- Best regards Roberto "David Wilkinson" wrote: > Robby wrote: > > I could of not included API.h in WP_INTRO.h but then included it in > > WP_INTRO.c like this: > > > > ============WP_INTRO.c > > > > #include "WP_INTRO.h" #include "API.h" > > A good rule to follow is that very .h file should include everything it needs in > order to compile when included in an otherwise empty .c (or.cpp) file and > *nothing else*. > > In your case, WP_INTRO.h does not need Api.h in order to compile when included > in an otherwise empty .c file (and so Api.h should not be included in WP_INTRO.h). > > -- > David Wilkinson > Visual C++ MVP > . > |