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();
}

  

posted on 2025-02-01 10:58  lydstory  阅读(6)  评论(0)    收藏  举报

导航