News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Implicit wxString to char* conversion in src/sdk/projectloader.cpp

Started by jdx, April 09, 2023, 02:22:49 PM

Previous topic - Next topic

Miguel Gimenez

wxWidgets documentation for wxString states:
QuoteIf you built wxWidgets with wxUSE_STL set to 1, the implicit conversions to both narrow and wide C strings are disabled and replaced with implicit conversions to std::string and std::wstring.
The implicit conversions uses c_str(). If the call to TinyXML needs multibyte then mb_str() should have been used from start.