Page 1 of 1

wxString to const char*

Posted: Wed Feb 29, 2012 4:48 am
by Nelson Joseph
Hi All,

My function gets string from wxTextCtrl and process it and returns a wxString.
Another third-party library function needs const char* as input. If I use wxString::c_str(), it does not return valid char*

I am using wxWidgets 2.9.3, Windows 7, UNICODE build

Any suggestion?

Re: wxString to const char*

Posted: Wed Feb 29, 2012 7:52 am
by bcteh