[CString → char *]
CString str;
str = "Hello";
char* ss = LPSTR(LPCTSTR(str));
[CString → TCHAR]
_tcscpy( szValue, (LPCTSTR)strValue);
[CString → int]
CString str;
int i = 0;
i = atoi((LPCTSTR)str);
[char * → CString]
char ss[] = "Hello";
CString str;
str.Format("%s", ss);
[char * → int]
char ss[10] = "Hello";
int i = _ttoi((LPCTSTR)ss);
CString str;
str = "Hello";
char* ss = LPSTR(LPCTSTR(str));
[CString → TCHAR]
_tcscpy( szValue, (LPCTSTR)strValue);
[CString → int]
CString str;
int i = 0;
i = atoi((LPCTSTR)str);
[char * → CString]
char ss[] = "Hello";
CString str;
str.Format("%s", ss);
[char * → int]
char ss[10] = "Hello";
int i = _ttoi((LPCTSTR)ss);