代码段如下
CString strFileTitle;
bool bWorking = finder.FindFile(_T("*.txt"));
while(bWorking)
{
bWorking=finder.FindNextFile();
strFileTitle+=finder.GetFileTitle();
}
AfxMessageBox(strFileTitle);
//文件名都保存在了strFileTitle中,但没有后缀名
代码段如下
CString strFileTitle;
AfxMessageBox(strFileTitle);
//文件名都保存在了strFileTitle中,但没有后缀名