Re: Redirecting cout to a TextBuffer
- From: "Milosz Derezynski" <internalerror gmail com>
- To: "Søren Hauberg" <hauberg gmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Redirecting cout to a TextBuffer
- Date: Sun, 11 May 2008 14:44:08 +0200
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]