[問題] CFileFind::FindFile 尋找多種副檔名

看板C_and_CPP作者 (泰勒大師)時間13年前 (2011/05/27 16:01), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) VC2008 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) MFC 問題(Question): CFileFind f; FilmPath.Replace(L"\\",L"/"); CString type=L"*.avi"; CString root = FilmPath+L"/"+type; BOOL bFind = f.FindFile( root); => CString type=L"*.avi"; 我想要讀到的不只是AVI還要其他的影片格式 像是WMV MKV 除了多用幾次同樣的程式碼跑以外 可以利用type=L"*.avi"這裡讓他可以讀多個副檔名嗎???? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.40.118.212

05/27 21:41, , 1F
搜尋條件改成*.*,在個別判斷副檔名...
05/27 21:41, 1F

05/28 00:02, , 2F
沒別的辦法就個別判斷試試看好了
05/28 00:02, 2F
文章代碼(AID): #1DtrfFWj (C_and_CPP)