Back to Richel Bilderbeek's homepage.
Back to Richel Bilderbeek's Code Snippets.
WideToStr
Converts a WideString to a std::string.
* View the code of 'WideToStr' in plain text.
#include <string>
//From http://www.richelbilderbeek.nl/CppWideToStr.htm
std::string WideToStr(const WideString& s)
{
const AnsiString a(s);
return a.c_str();
}
Back to Richel Bilderbeek's Code Snippets.
Back to Richel Bilderbeek's homepage.