title: Win32 Console application that can open windows
body: <p>My question is pretty simple. In Ubuntu, programs can often be deployed with or without a GUI, perhaps using a flag like --showGUI. I essentially want to recreate this functionality in windows, but it seems that windows applications start with win_main, while console applications start with main.</p>
  
  <p>So what is the basic structure required to produce this behavior? E.g. in in Visual Studio 2012, should I start with a Windows App and then hide the window and write to console? Or can I start with an empty Console Application and create a window with the windows API?</p>
  
  <p>Thanks</p>
  
  <p>(c/c++, btw)</p>