Re: Redirect cout to a TextView



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.




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