Click here to Skip to main content
15,949,741 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CAVI "bitmap" colors - reserved value question Pin
Mark Salsbery27-Aug-08 8:49
Mark Salsbery27-Aug-08 8:49 
GeneralRe: CAVI "bitmap" colors - reserved value question Pin
Vaclav_28-Aug-08 11:45
Vaclav_28-Aug-08 11:45 
QuestionRe: CAVI "bitmap" colors - reserved value question Pin
Mark Salsbery29-Aug-08 5:24
Mark Salsbery29-Aug-08 5:24 
Questioncopy/past column from excel file to an other one Pin
zdoucha27-Aug-08 7:43
zdoucha27-Aug-08 7:43 
AnswerRe: copy/past column from excel file to an other one Pin
David Crow27-Aug-08 8:14
David Crow27-Aug-08 8:14 
QuestionPreprocessor confusion Pin
s196675m27-Aug-08 6:42
s196675m27-Aug-08 6:42 
AnswerRe: Preprocessor confusion Pin
Mark Salsbery27-Aug-08 7:08
Mark Salsbery27-Aug-08 7:08 
AnswerRe: Preprocessor confusion Pin
Cedric Moonen27-Aug-08 7:40
Cedric Moonen27-Aug-08 7:40 
In fact the rule is really simple: you can merely put 'almost' what you want. Preprocess is in fact far less complicated that you might think, it is really no more than text processing. In this case, the #define TEggCodeParser_Class can be used later as a kind of flag: if you check for the existance of TEggCodeParser_Class, you can remove certain part of your code from the compilation.

The second example is used to avoid including multiple time the same header file. Don't forget that both of these conditions should be terminated by a #endif. If EXAMPLE_H was already defined (because the header file was already included for example), then everything which lies between the #if !defined and the #endif will be 'discarded'.

Cédric Moonen
Software developer

Charting control [v1.5 - Updated]
OpenGL game tutorial in C++

QuestionSO_RCVTIMEO not working for nonblocking win32 socket Pin
onlyjaypatel27-Aug-08 3:11
onlyjaypatel27-Aug-08 3:11 
AnswerRe: SO_RCVTIMEO not working for nonblocking win32 socket Pin
SandipG 27-Aug-08 3:32
SandipG 27-Aug-08 3:32 
QuestionInhertance Diamond problem Pin
laksh220427-Aug-08 2:41
laksh220427-Aug-08 2:41 
AnswerRe: Inhertance Diamond problem [modified] Pin
Nibu babu thomas27-Aug-08 2:48
Nibu babu thomas27-Aug-08 2:48 
GeneralRe: Inhertance Diamond problem Pin
laksh220427-Aug-08 3:28
laksh220427-Aug-08 3:28 
GeneralRe: Inhertance Diamond problem Pin
Nibu babu thomas27-Aug-08 3:36
Nibu babu thomas27-Aug-08 3:36 
AnswerRe: Inhertance Diamond problem Pin
_AnsHUMAN_ 27-Aug-08 2:55
_AnsHUMAN_ 27-Aug-08 2:55 
AnswerRe: Inhertance Diamond problem Pin
Sarath C27-Aug-08 4:37
Sarath C27-Aug-08 4:37 
QuestionHow to run VB Script in MFC program? Pin
santhoshv8427-Aug-08 2:34
santhoshv8427-Aug-08 2:34 
AnswerRe: How to run VB Script in MFC program? Pin
Nibu babu thomas27-Aug-08 2:37
Nibu babu thomas27-Aug-08 2:37 
QuestionAdd EditControl Pin
MsmVc27-Aug-08 2:06
MsmVc27-Aug-08 2:06 
AnswerRe: Add EditControl Pin
Cedric Moonen27-Aug-08 2:11
Cedric Moonen27-Aug-08 2:11 
GeneralRe: Add EditControl Pin
MsmVc27-Aug-08 2:19
MsmVc27-Aug-08 2:19 
GeneralRe: Add EditControl Pin
Cedric Moonen27-Aug-08 2:38
Cedric Moonen27-Aug-08 2:38 
GeneralRe: Add EditControl Pin
David Crow27-Aug-08 3:06
David Crow27-Aug-08 3:06 
GeneralRe: Add EditControl Pin
Hamid_RT27-Aug-08 4:09
Hamid_RT27-Aug-08 4:09 
AnswerRe: Add EditControl Pin
Jijo.Raj27-Aug-08 2:15
Jijo.Raj27-Aug-08 2:15 

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.