To send output from a IBM C and C++ Compilers application directly to a Presentation Manager (PM) window, you must use PM calls.
Output to standard streams is directed by PM to the file handles for standard streams. The PM interface does not display output and messages to these streams. To see them, you must redirect the streams.
There are two ways to display the output sent to stdout, cout, or wcout:
junko | display
All error messages during run time go to stderr, cerr, clog, wcerr or wclog. To see the error messages in a PM window, you must redirect the error stream.
Programs that use the User Interface classes can
force the output messages of C++ exceptions in the library to
either stderr, stdout, or to a queue. To do this, before running
a Presentation Manager application, set the following two
environment variables:
![]()
Stream
Processing
Standard
Streams
Application
Runtime Environment Variables
![]()
Considerations
for Programming Stream I/O