char szVer[256] = {0};
memset( szVer,0,sizeof(szVer));
CString str;
str.Format( L"%s", szVer);
Cstring本质就是const TCHAR*
TCHAR szVer[64] = {0};
CString strVer = szVer;
char*转TCHAR* 通过while循环拷贝
TCHAR szVer[MAX_FILE_BUF_SIZE] = {0};
const char* pInd1 = “V2sw”;
TCHAR* pInd2 = szVer;
while (*pInd1)
{
*pInd2 = *pInd1;
pInd1++;
pInd2++;
}