#define Ns1000_CONFIG_PATH_FILE _T(".\\ns1000_config\\*.*")
#define Ns1000_CONFIG_PATH _T(".\\ns1000_config\\")
CFileFind tempFind;
CString path=Ns1000_CONFIG_PATH_FILE;
CString strFileName;
BOOL bIsFinded = (BOOL)tempFind.FindFile(path);
int nCount = 0;
while(bIsFinded)
{
bIsFinded = (BOOL)tempFind.FindNextFile();
if( !tempFind.IsDots() )
{
nCount++;//文件数
//每次得到一个文件名
strFileName = tempFind.GetFileName();
CString str = Ns1000_CONFIG_PATH;
str += strFileName;
m_configFileList.push_back(str);
}
}