Click here to Skip to main content
15,913,145 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Defining Global Constants Pin
Member 75496013-Jan-08 10:40
Member 75496013-Jan-08 10:40 
GeneralRe: Defining Global Constants Pin
CPallini13-Jan-08 10:51
mveCPallini13-Jan-08 10:51 
GeneralRe: Defining Global Constants Pin
Member 75496013-Jan-08 17:18
Member 75496013-Jan-08 17:18 
GeneralRe: Defining Global Constants Pin
Maxwell Chen13-Jan-08 18:13
Maxwell Chen13-Jan-08 18:13 
GeneralRe: Defining Global Constants Pin
Maxwell Chen13-Jan-08 16:18
Maxwell Chen13-Jan-08 16:18 
GeneralRe: Defining Global Constants Pin
Member 75496013-Jan-08 17:19
Member 75496013-Jan-08 17:19 
GeneralRe: Defining Global Constants Pin
Maxwell Chen13-Jan-08 18:02
Maxwell Chen13-Jan-08 18:02 
GeneralRe: Defining Global Constants Pin
Luc Pattyn13-Jan-08 11:13
sitebuilderLuc Pattyn13-Jan-08 11:13 
Hi Leslie,

AFAIK you are supposed to follow a strict order in your #define and #include lines,
basically Windows headers should come first, third-party headers second, everything else
after that.

The official reason is newer Windows releases may modify or add to the header files
and suddenly create conflicts; of course this still can happen in the suggested order too,
but then it more looks like the problem is yours...

BTW: you can protect yourself against some mishaps by doing an #undef before you
do your own #define (you can #undef an undefined item, that does not constitute an error).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralOpinion about Notify Icon Pin
Richard Andrew x6412-Jan-08 11:45
professionalRichard Andrew x6412-Jan-08 11:45 
GeneralRe: Opinion about Notify Icon Pin
David Crow12-Jan-08 16:53
David Crow12-Jan-08 16:53 
GeneralRe: Opinion about Notify Icon Pin
Richard Andrew x6413-Jan-08 8:39
professionalRichard Andrew x6413-Jan-08 8:39 
GeneralRe: Opinion about Notify Icon Pin
Mark Salsbery13-Jan-08 8:16
Mark Salsbery13-Jan-08 8:16 
GeneralRe: Opinion about Notify Icon Pin
Richard Andrew x6413-Jan-08 8:40
professionalRichard Andrew x6413-Jan-08 8:40 
QuestionRe: Opinion about Notify Icon Pin
David Crow14-Jan-08 2:34
David Crow14-Jan-08 2:34 
GeneralRe: Opinion about Notify Icon Pin
Mark Salsbery14-Jan-08 6:08
Mark Salsbery14-Jan-08 6:08 
GeneralNewbie Question on C Pointers Pin
_NielsB12-Jan-08 10:55
_NielsB12-Jan-08 10:55 
GeneralRe: Newbie Question on C Pointers Pin
Chris Losinger12-Jan-08 11:03
professionalChris Losinger12-Jan-08 11:03 
GeneralRe: Newbie Question on C Pointers Pin
CPallini12-Jan-08 11:58
mveCPallini12-Jan-08 11:58 
GeneralRe: Newbie Question on C Pointers Pin
_NielsB12-Jan-08 21:29
_NielsB12-Jan-08 21:29 
GeneralRe: Newbie Question on C Pointers Pin
CPallini12-Jan-08 23:19
mveCPallini12-Jan-08 23:19 
GeneralRe: Newbie Question on C Pointers Pin
_NielsB12-Jan-08 23:45
_NielsB12-Jan-08 23:45 
Generalsearching web - automated Pin
Force Code12-Jan-08 10:34
Force Code12-Jan-08 10:34 
GeneralRe: searching web - automated Pin
Force Code12-Jan-08 10:46
Force Code12-Jan-08 10:46 
GeneralSwitching off hibernation [modified] Pin
tibiz12-Jan-08 8:33
tibiz12-Jan-08 8:33 
GeneralRe: Switching off hibernation Pin
David Crow12-Jan-08 9:44
David Crow12-Jan-08 9:44 

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.