Use wxString::t_str() with a function taking LPCTSTR (which is either LPCWSTR or LPCSTR). And wxStrg::wc_str() for LPCOLESTR which, ordinarily, is a wide string.
Use wxString::t_str() with a function taking LPCTSTR (which is either LPCWSTR or LPCSTR). And wxStrg::wc_str() for LPCOLESTR which, ordinarily, is a wide string.