I am developing several MFC GUI programs
that all are using libraries that use printf() and
other stdio output routines for error messages.
Since the end-user is expected to have many
of these programs running at the same time, I
don't want to open a console for each of these.
Thus, I would want to redirect these messages
to a pipe or similar where I would pick them up,
format and show them myself. The best thing
would probably be if each of my programs did
this, so that they are not dependent on an ex-
ternal program to show all error messages.
I have tried to achieve this but redirection would
only work if when AllocConsole() is used.
Hopefully someone can give me an example of
or at least a clue to how this could be done.