wxString str = "Hello World"; const wchar_t* wc = str.wc_str();
void myFunction(const wchar_t* str); wxString str = "Hello World"; myFunction(str.wc_str());This code creates a wxString object, sets its value to "Hello World" and then passes its wchar_t* C-style string representation to a function that expects a wide-character string. Package library: wxWidgets