[CString -> char * 변환]

CString str;
str = "Hello";
char* ss = LPSTR(LPCTSTR(str));

[char * --> CString 변환]

char ss[] = "Hello";
CString str;
str.Format("%s", ss);

Or

char *ss = "Hello";
CString str;
str = ss;

유용한 팁임
Posted by 모과이IT
,