Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Resource Compiler
 #ifdef

  Switch on low bandwidth view
#ifdef

The #ifdef directive controls conditional compilation of the resource file by checking the specified name. If the name has been defined by using a #define directive or by using the /d command-line option with the resource compiler, #ifdef directs the compiler to continue with the statement immediately after the #ifdef directive. If the name has not been defined, #ifdef directs the compiler to skip all statements up to the next #endif directive.


#ifdef name

name

Name to be checked by the directive.

 

Example

This example compiles the BITMAP statement only if Debug is defined:

#ifdef Debug
BITMAP 1 errbox.bmp
#endif

See Also

Preprocessor Directives

Send comments about this topic to Microsoft

Build date: 5/7/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker