strPath转pChPath:
CString strPath;
TCHAR *pTchPath;
char pChPath[MAX_PATH] = {0};
int nlength;
strPath = _T("test string");
pTchPath = strPath.GetBuffer(strPath.GetLength() + 1);
nlength = WideCharToMultiByte(CP_ACP, 0, pTchPath, -1, NULL, 0, NULL,NULL);
WideCharToMultiByte(CP_ACP, 0, pTchPath, -1, pChPath, nlength, NULL, NULL);