i am trying to convert a LPCSTR string into LPCTSTR string. i want to concatenate two string,when i try like this
LPCSTR
LPCTSTR
LPCTSTR str1 = L\"Ra
MultiByteToWideChar is the only way to go, if your code is compiled with UNICODE.
Alternatively you can do this. 7bits ASCII -> wchar should be easy.
TCHAR str3[256] = { 0 }; for (int i = 0; str2[i] != 0; i++) str3[i] = str2[i];