新年快乐,求个小算法 有个字符串,保存的是目录路径比如:strDirPath = _T("\\ABC\\123\\XYZ\\");怎么样能方便快捷的的得到它的上层路径呢也就是要返回 strDirPath = _T("\\ABC\\123\\"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 目前是这样实现的int iPos = strDirPath.ReverseFind('\\');if (iPos>0){ strDirPath = strDirPath.Left(iPos); iPos = strDirPath.ReverseFind('\\'); strDirPath = strDirPath.Left(iPos+1);} 求文档可以查到WORD COM组件里各个接口的含义 在MFC中显示多幅图片,如何实现分页显示? VC ATL项目和JavaScript之间怎样传输字符串 有关类的菜鸟问题,请指教! 如何获得NT中正在运行的所有进程数 请问VC++调试的问题? 祝jennyvenus新年快乐... 一个头痛的问题 Edit编辑框控件,如何让文本垂直居中,又具有password属性? 怪哉:CDatabase的删除问题:"Delete * from tablename" 关于MFC在控制台执行,请指教 用virtual list显示网络数据,即时更新问题?
if (iPos>0)
{
strDirPath = strDirPath.Left(iPos);
iPos = strDirPath.ReverseFind('\\');
strDirPath = strDirPath.Left(iPos+1);
}