#ifdef #undef 的应用解决方法

#ifdef #undef 的应用
#ifdef interface
#undef interface
#endif
什么意思
------解决方案--------------------
#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.

Syntax
#ifdef name
 
Parameters
name 
Specifies the name to be checked by the directive. 
Example
This example compiles the BITMAP statement only if the name Debug is defined:

#ifdef Debug
BITMAP 1 errbox.bmp
#endif 
 
See Also
#define, #endif, #if, #ifndef, #undef 

 
#undef
The #undef directive removes the current definition of the specified name. All subsequent occurrences of the name are processed without replacement.

Syntax
#undef name
 
Parameters
name 
Specifies the name to be removed. This value is any combination of letters, digits, and punctuation. 
Example
This example removes the definitions for the names nonzero and USERCLASS:

#undef     nonzero
#undef     USERCLASS 
 
See Also
#define