MFC 中 CFindFile 的用法
来源:互联网 发布:淘宝卖啥最赚钱排行 编辑:程序博客网 时间:2024/05/19 03:45
void TraversFile(CString csPath){ CString csPrePath = csPath; CString csNextPath = csPath; CFileFind ff; csPath += _T("*.*");//遍历这一级全部的目录 int nResult = ff.FindFile(csPath); while(nResult) { nResult = ff.FindNextFileW(); if(ff.IsDirectory() && !ff.IsDots())//递归遍历 { wcout << (LPCTSTR)ff.GetFilePath() << endl; csNextPath += ff.GetFileName(); csNextPath += _T("\\"); TraversFile(csNextPath); } csNextPath = csPrePath; }}
很简单,没什么好说的~
0 0
- MFC 中 CFindFile 的用法
- CFindFile的用法
- MFC中UpdateData()的用法
- MFC中UpdateData的用法
- MFC中MessageBox的用法
- MFC中控件的用法
- MFC 中CFileDialog的用法
- MFC中定时器的用法
- MFC中TRACE的用法
- MFC中ComboBox的用法
- MFC中MessageBox的用法
- MFC中MessageBox的用法
- MFC中ClassWizard的用法
- MFC中TRACE的用法
- MFC中MessageBox的用法
- MFC中MessageBox的用法
- MFC中theApp的用法
- MFC中theApp的用法
- IOS-关于NSString的格式化的一点理解
- oracle游标的使用方法和属性
- Warning: Your Magento folder does not have sufficient write permissions.
- 黑马程序员 JAVA-面向对象(一)
- javascript如何获得按键的keycode
- MFC 中 CFindFile 的用法
- 【Styling Android】字体阴影
- sp_executesql介绍和使用
- hamming weight 汉明权重算法
- shell系列------控制另一个shell的脚本
- Java—java中如何实现动态数组的创建与赋值
- Activity生命周期
- Solr源码配置运行
- AutoFollowBox