void ReadFolder(const CString strFolderPath)
{
CString strPath = strFolderPath + _T("\\*.*");
CString strFullName;
CFileFind finder;
BOOL bWorking = finder.FindFile(strPath );
while (bWorking)
{
bWorking = finder.FindNextFile();
if( finder.IsDots() )
continue;
if( finder.IsDirectory() )
ReadFolder(finder.GetFilePath());
else
{
strFullName = finder.GetFilePath();
OutputDebugString( (LPCTSTR)(strFullName + L"\n") );//输出文件名
}
}
finder.Close();
}