im using 2.6.2 with with visual studio 7.1 and complile as dll realese.
my setup.h says #define wxUSE_STD_IOSTREAM 1
Code: Select all
wxTextCtrl *control = new wxTextCtrl(...);
*control << 123.456 << " some text\n";
Code: Select all
#include <iostream>
wxTextCtrl *control = new wxTextCtrl(...);
std::cout.rdbuf(*control); //error c2664
"... unable to convert from'wxTextCtr' to'std::basic_ios..."
if im trying to use wxStreamToTextRedirector redirect(control);
the compiler says wxStreamToTextRedirector not defined.
The documentation to for wxStreamToTextRedirector says "Some compilers and/or build configurations don't support multiply inheriting wxTextCtrl from std::streambuf in which case this class is not compiled in."
Do i have build combination which doesnt support wxStreamToText.?
how could i still redirect std::cout. cos im using a thir part library which is using cout for error messages and i want them to show in the textconsole.
regards, Tobi