1.CString转char*
CString ctrpath;
CStringA strPathA = CW2A(ctrpath.GetBuffer(), CP_THREAD_ACP);
char*temp=strPathA.GetBuffer();
- char*转CString(注意是大写 S 小写乱码)
CString str; str.Format(_T("%S"), charSource2);
转载于:https://blog.51cto.com/haidragon/2106799