How do you convert CString and std::string std::wstring to each other?
According to CodeGuru: CString to std::string: BUT: std::string cannot always construct from a LPCTSTR. i.e. the code will fail for UNICODE builds. As std::string can construct only from LPSTR / LPCSTR, a programmer who uses VC++ 7.x or better can utilize conversion classes such as CT2CA as an intermediary. std::string to CString: (From Visual Studio’s … Read more