Setting up Application Project Properties in Visual Studio .NET 2003


Visual Studio C++ Preprocessor Properties

Here we will examine the C++ Compiler Preprocessor Properties Tab.



Preprocessor Definitions
This is where you indicate to the compiler any preprocessor defines you wish to be available to your entire project.

It can only be used to define a symbol, not to define a symbol as something (which is techincally a macro). Therefore, symbols defined here are appropriate for conditional source via the #if and #ifdef directives.

It is recommended that you use these sparingly.

The default WIN32 and _DEBUG ( NDEBUG for Release) symbols are important for the Visual Studio C++ compiler and should not be removed or altered.

Some libraries may require you to add more symbols to this list in order to function properly.

IMPORTANT NOTE! You could do the same by using a #define in a header file and including this header file in every other file. However, this is prone to error since the header may be forgotten during development.





<< Previous

:: Index ::

Next >>