1. CString to char*
CString ctrpath;
CStringA strPathA = CW2A(ctrpath.GetBuffer(), CP_THREAD_ACP);
char*temp=strPathA.GetBuffer();
- char* to CString (note that the uppercase S is lowercase garbled)
CString str; str.Format(_T("%S"), charSource2);