There is such a definition:
#ifdef UNICODE typedef std::wstring tstring #else typedef std::wstring tstring #end if Then I have this code:
tstring str = TEXT("cd My_Folder"); LPCTSTR lpStr = str.c_str(); #ifdef UNICODE _wsystem(lpStr); #else system(lpStr); #endif However, the program crashes. There is a suspicion that I am doing the wrong row conversion Tell me how to.
UNICODEfalls?LPCTSTRrelies on_UNICODE(with an underscore). - αλεχολυτ