[SDL] Re: I/O problem solvable.... need Help though.
albert at users.sf.net
Fri Jan 21 12:55:50 PST 2005
On Fri, 2005-01-21 at 15:11, jimrandomh wrote:
> This is the third time this problem (no clean way to get rid of stdio
> redirect) has been brought up in about a week. At present, recompiling
> the SDL library or adding WinMain() your program are the only
> workarounds. IMO, both are awful solutions; it's really just waiting
> for someone to step up and write a patch to SDL.
I hope said patch completely removes the feature. Any app that
needs this feature can simply add:
freopen("stdin.txt", "r", stdin);
freopen("stdout.txt", "a", stdout);
freopen("stderr.txt", "a", stderr);
More information about the SDL