Fails to convert process name to wxString

Vadim Zeitlin vadim at wxwidgets.org
Thu Nov 1 13:43:38 PDT 2007


On Thu, 1 Nov 2007 22:38:38 +0200 Eran Ifrah <eran.ifrah at gmail.com> wrote:

EI> >> "cc_fails_to_completed.exe"
EI> Indeed this is the correct string I am looking.
...
EI> The conversion line is now done like this:
EI> wxString name(pe.szExeFile);

 "name" now contains the correct data. What you do with it next is another
story.

EI> The debugger's output (looks the same to me):
EI> +    m_pchData    0x01264c34 "捣晟楡獬瑟彯潣灭敬整⹤硥e"    unsigned short *

 You display wide character string as an ANSI one. gdb is not capable of
directly displaying wchar_t strings (shame on it).

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http:/




More information about the wx-users mailing list