MFC byte转Cstring 用于给控件
byte buf[10] = {'a','b','v','a' ,'a','a','a','a','a' ,'a' };
CString *p = new CString((char*)buf, 10);
CString cs = *p;
SetDlgItemText(IDC_EDIT_INPUT, cs);
int直接转Cstring
CString strText;
int nPos;
strText.Format(_T("%d"), nPos);