title: How do I programatically pop up a console from winMain in C?
body: <pre><code>int WINAPI WinMain (HINSTANCE p1, HINSTANCE p2, LPSTR p3, int p4)
  {
  
  }
  </code></pre>
  
  <p>I want a console to pop up when I click a button,what's the proper way to do it?</p>
  
  <p><strong>UPDATE</strong>
  How do I output text to that console?</p>