This piece of code has been compiled in UNICODE
Code: Select all
wxString str;
// .... we fill str
const char *buffer = wxConvUTF8.cWX2MB( str );
/// ...
Code: Select all
wxString str;
// .... we fill str
const char *buffer = wxConvUTF8.cWX2MB( str );
/// ...
Code: Select all
{ // begin block
wxString str;
const char *buffer = wxConvUTF8.cWX2MB( str );
} // end block, losing scope here.