Some of the sample code I have available uses std::cout to do this to a console app.
Code: Select all
cout << std::setfill(' ') << std::left << std::setw(44) << md.key() << " " << std::setw(9)
<< std::setfill(' ') << std::left << md.typeName() << " " << std::dec << std::setw(3)
<< std::setfill(' ') << std::right << md.count() << " " << std::dec << md.value() << std::endl;
To avoid as many transcription/translation errors as possible, I wanted to display the result on wxTextCtrl using redirection
I did find the topic discussed here:
viewtopic.php?f=1&t=46867&p=197057
but implementing the proposed class wxStreamToTextRedirectorUnicode does not seem to do the job for me.
All output, even plain text strings, just disappears.
So far I have not been able to trace through the code to track down the cause in an effort to understand and hopefully find a way to resolve the problem.
Obviously I am missing something critical, but I have no idea what.
TIA