title: Where does "printf" write in a Windows Non-console Application?
body: <p>If I choose to create a Windows Non-console Application, and implement <code>printf/cout</code> in the code, where does the <code>printf/cout</code> write? Does it write to the <code>stdout</code> buffer? If yes, is there any way to read it from <code>stdout</code> and print it to some text file or do a <code>MessageBox</code> with the text (just to verify that I have read it correctly)?</p>
  <p><strong>EDIT::</strong> Just to clarify that I do not want to redirect the output anywhere. I would like to know, where does <code>printf/cout</code> write? And if it writes to some default buffer, is there a way to read the output, just to verify that I have read the correct output and from the correct buffer. <strong>Please, do not give me solutions to redirect the &quot;stdout&quot;</strong>.</p>