SearchImgFile 某一类型后面在用
void SearchImgFile(CString strFilePath,CString strFileType,vector<CString> &arrFileList) { CFileFind fFinder; CString strFile; strFilePath.TrimRight("\\"); strFilePath+="\\"; strFile = strFilePath + "*."+strFileType; BOOL bFind = fFinder.FindFile(strFile); while (bFind) { bFind = fFinder.FindNextFile(); strFile = fFinder.GetFilePath(); arrFileList.push_back(strFile); } fFinder.Close(); }