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

Popular posts from this blog

python - Does anyone know how to configure the hunpos wrapper class on nltk? -

mysql - How to insert just year and month into date field? -