title: How do I setup visual studio to register some #defines globally?
body: <p>What I mean is, in each of my source files I have to insert #define NOGDI to stop windows.h from including GDI defines (since it's BITMAP define conflicts with mine).</p>
  
  <p>e.g.</p>
  
  <pre><code>#define NOGDI
  #include &lt;windows.h&gt;
  </code></pre>
  
  <p>Unfortunately, I have to do this in every seperate source file which includes windows.h, which I do not want to do.
  I am using Visual Studio 2005, is there any way I can set it to #define something globally? (i.e. in all of the source files).</p>