Max Bowsher wrote:
I've tried various Win32 API and can get cmd.exe to display the text but not redirect it and the Cygwin shells don't want to display it either using WriteConsole. WriteFile works the same as the printf and fprintf I originally had. Perhaps a combination of -mconsole -lgdi32 would help. Max, could you give that a try with setup to see what ill effects it may have?Earnie Boyd <[EMAIL PROTECTED]> wrote:Max Bowsher wrote:Earnie Boyd <[EMAIL PROTECTED]> wrote:That depends on how it's coded. The -mwindows switch alone doesn't cause the abscense of stdio.I couldn't get your foo.c to produce any output in a cmd shell. (It does in a Cygwin shell)Now, that's strange, try this on for size: foo 2> err > out type out type errWorks for me. How odd!
Earnie.