5/11/2016

CString to char*

//CString -> char *
CString str;
str = "hello";
char * chr = LPSTR(LPCTSTR(str));

//char * -> CString
char chr[] = "hello";
CString str;
str.Format("%s", ss);

No comments:

Post a Comment