T
Tony Boloney
Hi all,
I'm trying to use the method described in the article
Adding Console I/O to a Win32 GUI App
http://dslweb.nwnexus.com/~ast/dload/guicon.htm
to output info to a separate console window.
I copy-pasted the code into my project and uncommented the last line
ios::sync_with_stdio();
to point cout, cin, etc to the console as well, but for some reason this
doesn't work. Using
fprintf(stdout, "some text")
works, but
cout << "some text" << endl
does nothing.
Could this have something to do with my configuration? (VS.NET, STLport
4.6 with own iostreams (no wrapper), DirectX9)?
Thanks!
T
I'm trying to use the method described in the article
Adding Console I/O to a Win32 GUI App
http://dslweb.nwnexus.com/~ast/dload/guicon.htm
to output info to a separate console window.
I copy-pasted the code into my project and uncommented the last line
ios::sync_with_stdio();
to point cout, cin, etc to the console as well, but for some reason this
doesn't work. Using
fprintf(stdout, "some text")
works, but
cout << "some text" << endl
does nothing.
Could this have something to do with my configuration? (VS.NET, STLport
4.6 with own iostreams (no wrapper), DirectX9)?
Thanks!
T