title: Win32 application with console output and without new window
body: <p>I'd like to create a tool that can either act as command line (display some console output based on input parameters), or display a window, based on input parameters.</p>
  
  <p>I'm using MSV2012 with C++, and it seems you have to 'choose' between console and window app.</p>
  
  <p>I know the net is filled with samples which use AllocConsole() and redirect std::out, but it doesn't make it feel like a command line application : calling the exe from the windows console will open a new window with the console output...</p>
  
  <p>Is there a way to have it use the current console window instead of allocating a new one?</p>
  
  <p>If not possible, I'll make 2 applications instead, but that's a pity..</p>