title: How do I set WinMain as entry point?
body: <p>I've deleted the <code>_tmain()</code> method which the IDE generated because I find no sense having two entry points after adding my <code>WinMain</code>entry. And yes, this is my first ever C++ application and I am a newbie, but please be nice.</p>
  <p>So that's all I got:</p>
  <pre><code>// Included headers:
  #include &quot;stdafx.h&quot;
  #include &lt;iostream&gt;
  #include &lt;Windows.h&gt;
  // Shortened namespaces:
  using namespace std;
  // The main entry of the application:
  int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd )
  {
      MessageBox( NULL, L&quot;Hello World!&quot;, L&quot;Just another Hello World program!&quot;, MB_ICONEXCLAMATION | MB_OK );
      return 0;
  }
  // End of file.
  </code></pre>
  <p>When I try to build and run I get this error:</p>
  <blockquote>
  <p>error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup</p>
  <p>error LNK1120: 1 unresolved externals</p>
  </blockquote>
  <p>I realise the entry point is missing, But where can I set <code>WinMain</code> as the entry point? I just took a look in the properties of the project itself and found nothing.
  Note that I've started the project as a console application, But now I am trying to turn it into a regualr windows application.</p>
  <p>Thanks.</p>