1 vector<CString>  str_vector;
 2 CFileFind finder;
 3 CString filepathname;
 4 CString str_file =_T(“F:\\TDDOWNLOAD");
 5 BOOL YesNo=finder.FindFile(str_file+_T("\\*.jpg"));
 6 //BOOL YesNo=finder.FindFile(str_file+_T("\\*.bmp"));
 7 while (YesNo)
 8 {
 9 YesNo=finder.FindNextFile();
10 filepathname=finder.GetFilePath();
11 str_vector.push_back(filepathname);
12 }

 

http://zhidao.baidu.com/link?url=Jki544MnviBpapc2tjUG2emjVxhiocSuq8m9xWyi29VyP-w87TE6j3tOj8-gehpoPYjUgRBuXpUTRWTvHBejgq

posted on 2015-01-28 14:54  mobileliker  阅读(206)  评论(0编辑  收藏  举报