std::string to wxString

Michael Chansky goldeneaglemc at gmail.com
Thu Jul 5 21:57:44 PDT 2007


If there's a chance the std::string has null zeros in the middle of it
you'll need to do something like

std::string oldString("string");
wxString newString(oldString.data(), oldString.size());
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070706/b5e=
28ba7/attachment.htm


More information about the wx-users mailing list