On 12/5/2014 04:28, Mark Cianfaglione wrote:
> Folks
>
> I know this might be a little off list but does anyone have a good way
> (in C) of being able to switch debug output from a file to console?
>
> I tired a method where I used freopen("CON","w+", stdout)but it always
> seems to fail. I saw this on a website (stupidly I didn't bookmark it)
> and the similar /dev/tty in Linux works great.( I have compile time
> switches)
>
> Is CON a legal special filename for Windows? Or is there something I'm
> missing?
> Try CONOUT$. Failing that, try reattaching the console.
0xD4EBC740.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
