
11 Jan
2005
11 Jan
'05
10:27 p.m.
Gennadiy Rozental wrote:
Yes, redirecting the output to the output page will work fine as long as you're working with a "console" app. Unfortunately there are times that to initialize some of the libraries we need to create a DirectX surface, or at least a Window instance. In that case, we have to create a Win32 app, and std::out is not piped correctly to the output. I'll have to double-check this.
Where is it piped to then?
I am not sure where it is piped to, but it is possible to get the output. Given: // winapp.exe WinMain(...) { std::cout << "Hello World!\n"; } On the console: winapp produces no output, while winapp | cat produces: Hello World! Regards, Reece