August 30, 2007

stdafx.h #define in C#

If you came from Microsoft Visual C++ world to the C#, I think that you know that we have not stdafx.h in this world therefore ..
If you wanna add a general #define to your project then you must add your #define lines to all cs pages which this is the first thing cross your mind but bill puts another way for you ... ;-)

go to Build section of your project's properties and find the condition compilation symbols and fill it with your #define flags ...

I think that this can help you, too ...
Have fun ;-)

No comments: