16,472
社区成员
发帖
与我相关
我的任务
分享
CString strFilter;
// 前面末尾可以有或没有 \ 结尾,后面可以是 *.*、.\\*.*、.\\.\\*.* 不管怎么样都行。
::PathCombine(strFilter.GetBuffer(MAX_PATH), m_strPath.GetBuffer(MAX_PATH), _T("*.*"));
strFilter.ReleaseBuffer();
m_strPath.ReleaseBuffer();
BOOL bFind = finder.FindFile(strFilter);
// 修改现有字符串
::PathAppend(m_strPath.GetBuffer(MAX_PATH), _T("*.*"));
m_strPath.ReleaseBuffer();
BOOL bFind = finder.FindFile(m_strPath);