title: How can I make a win32 app with no dependency on the msvc dll?
body: <p>I want to code a c++ win32 application without msvc dll dependency using Visual Studio.</p>
  
  <p>I tried the <code>/NODEFAULTLIB</code> option but after that I get an unresolved external error, even with a "empty" program, because of no library.  How can I correct this?  What libraries do I <em>have</em> to link?</p>
  
  <p>Here is a simple code i tried to compile with <code>/NODEFAULTLIB</code> option and failed.</p>
  
  <pre><code>#include &lt;Windows.h&gt;
  
  int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow) {
  
  }
  </code></pre>