How to redirect stdout, stderr in a GUI application



I would like to redirect stdout and stderr in a GUI application.
My GUI is composed of a mainframe with a ClistCrl(COutPutWnd) control on the bottom.
Inside my code I would like to be able to write :


cout << "test";

and to display it in my COutPutWnd.
How can I do that ?
.



Relevant Pages

  • Re: Multithreaded GUI issues
    ... callback thread that I have no control over. ... In each of these cases, where the events get passed on to GUI components, ... You must use Invoke() or BeginInvokeon any code that will ... It depends on what you do with the Image objects and any resulting data ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: File browser
    ... but to do that you need to be in control of the competing threads. ... The outdated guidance that you could initialize the GUI on the main thread, ... of that control to ensure a synchronization error. ...
    (comp.lang.java.programmer)
  • Design Question
    ... I begin a GUI class. ... I have a Control class. ... Both have exit methods - but it ... class Gui implements ActionListener{ ...
    (comp.lang.java.programmer)
  • Design Question
    ... I begin a GUI class. ... I have a Control class. ... Both have exit methods - but it ... class Gui implements ActionListener{ ...
    (comp.lang.java.programmer)
  • Re: NTFS Effective Permissions?
    ... > values in previous posts that gave the specific ACE flag values in question ... No, I'm not ignoring it - I've got the print-out in front of me, but I ... this usually DOES show up in the GUI - if you check the ... are showing as "Generic full control". ...
    (microsoft.public.scripting.wsh)