I am writing an app that needs to be able to run in the GUI or
the command line (console). The GUI portion is no problem,
but the console portion is causing problems. Since PBDLL does
not support STDOUT, I have been trying to use the WritFile API.
The problem I am encountering is that in order to write to
the console, I need to call AllocConsole. However, this
creates a new console window.
How do I write text to the console window that called the app
(i.e., the console that the user typed the command)?
I am not concerned with switching between GUI and console,
and I realize that PBCC supports STDOUT.
TIA
------------------
the command line (console). The GUI portion is no problem,
but the console portion is causing problems. Since PBDLL does
not support STDOUT, I have been trying to use the WritFile API.
The problem I am encountering is that in order to write to
the console, I need to call AllocConsole. However, this
creates a new console window.
How do I write text to the console window that called the app
(i.e., the console that the user typed the command)?
I am not concerned with switching between GUI and console,
and I realize that PBCC supports STDOUT.
TIA
------------------
Comment