wxString to const char* Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Nelson Joseph
Experienced Solver
Experienced Solver
Posts: 65
Joined: Sun Oct 26, 2008 5:15 am
Location: Chennai, India
Contact:

wxString to const char*

Post 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?
Regards,
Nelson Joseph
bcteh
Experienced Solver
Experienced Solver
Posts: 72
Joined: Mon Nov 27, 2006 9:56 am

Re: wxString to const char*

Post by bcteh »

Post Reply