CString str=_T("aaa;vvv");
int index=str.Find(_T(";"));
str=str.Left(str.GetLength()-index-1);
AfxMessageBox((LPCTSTR)str);
CString str=_T("aaa;vvv");
int index=str.Find(_T(";"));
str=str.Left(str.GetLength()-index-1);
AfxMessageBox((LPCTSTR)str);
转载于:https://www.cnblogs.com/marky/archive/2012/04/03/2431009.html