1

Let's say I write a windows GUI application. When started from terminal, it immediately returns and shows the GUI.

Where does stdout go to if I use something Luke printfin C? Is there any way to capture it?

barteks2x
  • 1,275
  • 12
  • 24
  • Possible duplicate of [this](https://stackoverflow.com/questions/191842/how-do-i-get-console-output-in-c-with-a-windows-program) – Suraj S May 08 '20 at 04:23
  • GUI apps do not create/allocate a console by default. You can use something like OutputDebugString to write output and use DbgView to view it. – kvr May 30 '20 at 22:01

0 Answers0