Author Topic: Implicit wxString to char* conversion in src/sdk/projectloader.cpp  (Read 2541 times)

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1433
Re: Implicit wxString to char* conversion in src/sdk/projectloader.cpp
« Reply #15 on: April 13, 2023, 10:33:23 am »
wxWidgets documentation for wxString states:
Quote
If 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.