Q: writing to STDOUT/STDERR from MFC application ?



Hi,
I was wondering if there is a simple enough way for an MFC application
to write to the STDOUT/STDERR without using "AllocConsole" ?

More specifically, I have an MFC application that can also run from the
command line without any GUI (if invoked with some switches). If this is the
case, I want to write to the STDOUT/STDERR as if it were a console rather
than an MFC/GUI application. How can I do it ?

Thanks...


.


Loading