Yep, wxString::find('somechar', true) seems to be broken.
However, wxString::rfind(...) still works. Here's a snippet..
wxTextCtrl *control = new wxTextCtrl( m_pwxPanel,
-1, //wxWindowID id,
"", //const wxString& value = "",
wxPoint(0,0), //const wxPoint& pos = wxDefaultPosition,
wxSize(500,500) //const wxSize& size = wxDefaultSize, long style = 0,
//const wxValidator& validator = wxDefaultValidator,
//const wxString& name = wxTextCtrlNameStr
);
wxString sPathname=_T("c:\\usr\\proj\\temp\\test.cpp");
size_t lth = sPathname.length();
int pos = sPathname.find('\\', true);
int cpos = sPathname.find('p', true);
int rpos = sPathname.rfind('\\');
*control << " len:" << (int)lth <<" pos:"<< pos ;
*control << " cpos:" << cpos;
*control << " rpos:" << rpos;
//results are: len:25 pos:2 cpos:7 rpos:16
Thanks for the heads-up Lieven
Pecan