[SDL] Re: stdout.txt and stderr.txt
JessH at lbjhs.net
Sat Apr 1 21:26:45 PST 2000
what would be nice is if it would output to console if run form console and to
files otherwise, not sure how easy that would be and i would be to lazy to do it
myself even if i did have some use for it but it would be nice :-)
Sam Lantinga wrote:
> > Andrew Shakinovsky wrote:
> > >
> > > In Win32 it redirects the output to a file in the WinMain function. You
> > > should be able to redirect it back to stdout by doing a freopen with "CON"
> > > as the file eg:
> > > freopen( "CON", "w", stdout );
> > I'm having the same problem under winNT 4. I tried the above, but no joy
> > (I also tried "CON:" because of (very) vague memories of device names :-)
> > Does NT have a different name for the console ?
> As far as I know you only get console output when you build a "console"
> application, one that brings up a black input/output window. That's why
> I redirect stdio to files.
> See ya!
> -Sam Lantinga, Lead Programmer, Loki Entertainment Software
More information about the SDL