Copying the contents of a wxString

Peter Gordon peter at pg-consultants.com
Fri Sep 8 01:22:22 PDT 2006


I need to copy the contents of a wxString to a separate, non-wxString
buffer.

The pointer is wxString::c_str(), but what is the length that needs to
be copied assuming that I am using Unicode? Do I need to take
wxString::Len(), 
wxString::Len() * sizeof(w_char), 
wxString::Len() * sizeof(w_char) + 1, 
or what?

Thanks,

Peter





More information about the wx-users mailing list