我自己写的测试源码如下:#include "iostream"#include "afx.h"#include "string"using namespace std;int main(){CFileFind finder;CString path("d:\\");BOOL hasNext;hasNext = finder.FindFile(path+"\\1.*");while(hasNext){hasNext = finder.FindNextFile();cout<<(LPCTSTR)finder.GetFilePath()<<endl;char* pFile = (LPSTR)(LPCTSTR)finder.GetFilePath();TCHAR* pFileName = _T(pFile);CFile::Remove(pFileName);}return 1;}
- 2 回答
- 0 关注
- 86 浏览
添加回答
举报
0/150
提交
取消