CString and wxString

CString to wxString

CString cstr = "Hello world";
wxString mystring( (LPCTSTR)cstr, ,wxConvUTF8 );


wxString to CString

wxString wxstr = wxT("Hello world");
CString mystring ( wxstr.c_str() );

你可能感兴趣的:(CString and wxString)