Re: LPCTSTR to std::string



Abdo Haji-Ali wrote:

BTW, I haven't tried it, but you can do something like
#ifdef UNICODE
#define tstring std::wstring
#else
#define tstring std::string
#endif

Personally, I prefer

#define tstring std::basic_string< TCHAR >

Does in effect the same.
.



Relevant Pages