将文件写入xml文件
本帖最后由 tmwanly 于 2013-04-23 15:57:50 编辑
void function:: TCergodic(CString FilePath)
{
CFileFind find;
CString Dir = FilePath+"*.*";
BOOL res =find.FindFile(Dir);
CString Filename;
CString path;
while(res)
{
res = find.FindNextFile();
Filename = find.GetFileName();
path=FilePath+Filename;
if((strcmp(Filename, ".") != 0) && (strcmp(Filename, "..") != 0))
{
if(judge(path))//判断是否为文件夹
{
TCergodic(path+"\");
}
else
{
}
}
}
}