分割字符串

int length = sPath.GetLength();
CString sFormat = _T("");
for (int i = length - 1; i > 0;i--)
{
if (_T('.')==sPath.GetAt(i))
{
sFormat = sPath.Right(length - i - 1);
break;
}
}

posted @ 2015-12-15 17:24  xzh1993  阅读(165)  评论(0编辑  收藏  举报