Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(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();
}

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml