Left()ReverseFind()
Left() 得到字符串左部指定个数的字符.
ReverseFind() 返回此CString对象中与要求的字符匹配的最后一个字符的索引;如果没有找到需要的字符则返回-1。
例如:
m_GPath=sgModulePath.Left(sgModulePath.ReverseFind('\\'));
Left() 得到字符串左部指定个数的字符.
ReverseFind() 返回此CString对象中与要求的字符匹配的最后一个字符的索引;如果没有找到需要的字符则返回-1。
例如:
m_GPath=sgModulePath.Left(sgModulePath.ReverseFind('\\'));
发布评论