急!!FindFile返回值为什么总是1?
CFileFind finder;
BOOL noEmpty = finder.FindFile( "C:\Documents and Settings\Administrator\My Documents\*.* ");
不管Documents文件夹是否为空,返回值都是1?
[解决办法]
CFileFind finder;
BOOL noEmpty = finder.FindFile( "C:\\Documents and Settings\\Administrator\\My Documents\\*.* ");
[解决办法]
除根目录之外,只要是文件夹,至少会搜索到 '. '和 '.. '二个目录