for those that want to use compile time statment for a win32 gui application, such as
#if DEBUG
//do something here if compiled in debug mode only
#endif
I notice in "project->build options->[#defines]"
select Debug in the left list, then you must add "DEBUG = 1" in the "#defines" tab, it's not there by default ;-)