http://topic.csdn.net/u/20100124/18/5749f3ef-8ec9-403e-84ea-1fe9fc5cee02.html
std::vector<CString> pCstrOutDir;
void FindMyFile(CString strFoldername){
//CString m_cstrFileList=L"";
CFileFind tempFind;
BOOL bFound;
bFound=tempFind.FindFile(strFoldername + _T("\\*.*"));
CString strTmp;
while(bFound)
{
bFound=tempFind.FindNextFile();
//++++++++++++++++++++++++++++++++++++
if(tempFind.IsDots())
continue;
//+++++++++++++++++++++++++++++++++++
if(tempFind.IsDirectory())
{
strTmp="";
strTmp=tempFind.GetFilePath();
FindMyFile(strTmp);
}
else
{
strTmp=tempFind.GetFileName();
strTmp.MakeUpper();
pCstrOutDir.push_back(tempFind.GetFilePath());
//m_cstrFileList+=tempFind.GetFilePath();
//m_cstrFileList+=",";
}
}
tempFind.Close();
}