Re: Redirecting cout to a TextBuffer



I don't really know anything about Windows programming but i'd imagine the Windows C runtime offers an stdout and stderr the same way as under *nix.

2008/5/11 Søren Hauberg <hauberg gmail com>:
2008/5/10 Milosz Derezynski <internalerror gmail com>:
> I guess you should set up a watch on stdout using Glib::IOChannel. I'm not
> sure how to do this for C++ streams since the IOChannel API, while wrapped
> into C++, still operates on C FDs only, but this would solve the problem.
Thanks, I'll try that. Is such an approach portable? I mean, does it
work on Windows?

Søren



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]