How do I convert a TCHAR array to std::string (not to std::basic_string)?
TCHAR
std::string
std::basic_string
TCHAR is either char or wchar_t, so a
typedef basic_string tstring;
is one way of doing it.
The other is to skip char altogether and just use std::wstring.
char
std::wstring