title: How to disable WinMain entry point for a MFC application?
body: <p>I understand that is not possible to have applications with multiple entry points under Windows.</p>
  
  <p>I have a MFC application and I added code for making it running as a service (<code>main()</code> entry point and other required stuff) but it looks that Windows will always run the <code>WinMain()</code> from MFC instead of my main.</p>
  
  <p>The question is how can I disable the <code>WinMain()</code> from MFC in order to be able to run my own <code>main()</code>.</p>
  
  <p>Probably the same problem would apply if you want to run the same application as a console application.</p>
  
  <p>What do I have to change in project properties in order to build it as a console application (main instead of WinMain)? </p>
  
  <p>Is commenting my CWinApp the only solution?</p>