char与CString相互转换
Char -> CString
char ch[] = "Hello";
CString str;
str.Format("%s",ch);
CString ->Char
char ch[6] ;
CString str = "Hello";
memcpy(ch,str.GetBuffer(str.GetLength()),6);
Char -> CString
char ch[] = "Hello";
CString str;
str.Format("%s",ch);
CString ->Char
char ch[6] ;
CString str = "Hello";
memcpy(ch,str.GetBuffer(str.GetLength()),6);