64,266
社区成员
发帖
与我相关
我的任务
分享
void CReplaceDlg::AccessFile(CString path,vector<CString> &files)
{
CFileFind finder;
path = path + _T("\\*.*");
BOOL bWorking = finder.FindFile(path);
while (bWorking)
{
bWorking = finder.FindNextFile();
if(finder.IsDots()) continue;
if (finder.IsDirectory())
{
AccessFile(finder.GetFilePath(),files);
}
else
{
files.push_back(finder.GetFileName());//找到文件
}
finder.Close();
return;
}