Re: Redirect cout to a TextView



Well, yes I've found that on google, but what I couldn't find so fast, is how I can use the custom created stream interact with the TextView.

2007/5/13, Tomasz Olszewski < olszewst gmail com>:
Lucas van Dijk napisał(a):
> Is it possible to redirect everything what's send to cout, to a TextView?
Sure! You'll have to create a special stream buffer and order std::cout
to replace its default buffer object with your own. Asking Google for
"cout redirection" should give you an answer how to achieve the latter.
To implement a new stream buffer I would recommend using Boost.Iostreams
library which will provide you with an easy to use framework.

BTW This is not really a gtkmm-related question.




--
Lucas

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