title: can I use macros to switch projects type?
body: <p>Depending on processor, I see macros that is defined for each project. So, in <strong>console</strong> it's <code>_CONSOLE</code> and on <strong>Win32</strong> it's <code>_WIN32</code></p>
  
  <p>when I open a source file (.cpp) with IDE I get by default console environment.</p>
  
  <ul>
  <li><p>it it possible to switch to win32 or mfc using macros eg:</p>
  
  <pre><code>#ifdef _CONSOLE
  #undef _CONSOLE
  #define _WIN32
  #endif
  </code></pre></li>
  </ul>
  
  <p>so I want the compiler asks me about <code>WinMain()</code> not <code>main()</code></p>