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

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -