This content has been marked as final. Show 2 replies
you need to redirect stdout to the the console via the Win32 API I believe.
I've found aworkaround.I do this from the ms-dos console and works:
c:\> MyApp.exe > log.txt
The command finishes immediatly popping my app's window but the printf statements are correctly saved to the log file.