MFC CString 字符串截取

    CString str=_T("aaa;vvv");
int index=str.Find(_T(";"));
str=str.Left(str.GetLength()-index-1);
AfxMessageBox((LPCTSTR)str);

 

posted on 2012-04-03 15:54  markygis  阅读(7462)  评论(0编辑  收藏  举报