c++ - How do I setup visual studio to register some #defines globally? -
what mean is, in each of source files have insert #define nogdi stop windows.h including gdi defines (since it's bitmap define conflicts mine).
e.g.
#define nogdi #include <windows.h>
unfortunately, have in every seperate source file includes windows.h, not want do. using visual studio 2005, there way can set #define globally? (i.e. in of source files).
project settings -> c/c++ -> preprocessor -> preprocessor definitions
here can define symbols applied globally source code in project.
Comments
Post a Comment