CFileFind用法总结
注意:CFileFind 在使用时,使用绝对路径或者相对路径都是可以的,查找Log文件夹下的.log文件
注意: 最后用\\,只用\两个时,找不到
//CString strd = L"E:\\wokspace\\PROJECT\code_c\\bin\\Log\\*.log";
CString strd = L"..\\bin\\Log\\*.log";
bool bfind = finder.FindFile(strd);//
//使用FindFile函数时,在release下 加断点时,bfind是有问题的,可能不准,在debug下是可以的
所以,如果调试请选择 debug版本
注意,使用时
https://blog.csdn.net/qyindelong/article/details/50789792
注意跳过 . dot
bWorking = finder.FindNextFile();
// 跳过 . 和 .. ; 否则会陷入无限循环中!!!
if (finder.IsDots())
continue;