(C++) WideToStrFebruary 24, 2017 · View on GitHub (C++) WideToStr Converts a WideString to a std::string. #include <string> //From http://www.richelbilderbeek.nl/CppWideToStr.htm std::string WideToStr(const WideString& s) { const AnsiString a(s); return a.c_str(); }