求CFileFind类的FindFile(LPCSTR str,DWORD )的用法
第一个参数他的匹配原则是什么样的呢?
能给个例子看吗
第一个参数他的匹配原则是什么样的呢?
能给个例子看吗
解决方案 »
- 新出来的菜鸟待遇比咱高一大截 我去啊
- 我在获取新浪accesstoken之后不能调用发送微波接口
- 高分悬赏,CreateService的一个老问题
- 如何改变MainFrame的背景颜色
- 一执行到PostThreadMessage程序就退出,为何?
- 不调用CoCreateInstance*()如何创建com instance?
- 看一下这段显示位图到对话框上的代码,不知道问题出在哪儿
- 路过请进,给点建议
- 谁有有关矢量字体的资料,想研究矢量字体,中文英文皆可,高分酬谢
- 急急急!!那位大虾能提供一个软件项目招标书?
- [100分]请教一个vc6写的ATL服务端组件在客户端数字签名安装的问题
- 对话框构造函数与初始化函数之间有什么联系?
CString strDir = "d:\\123\\*.*";
BOOL bfind = cFindfile.FindFile(strDir);
while( bfind )
{
bfind = cFindfile.FindNextFile();
if( cFindfile.IsDots() )
continue;
DeleteFile(cFindfile.GetFilePath());
}
CString strFileName, strSuffix, strFilePath;
int nIndex;
CString strAVI;
BOOL bIsFinded =(BOOL)tempFind.FindFile( path );
while( bIsFinded )
{
bIsFinded = (BOOL)tempFind.FindNextFile();
if( !tempFind.IsDots() )
{
strFileName = tempFind.GetFileName();
nIndex = strFileName.ReverseFind('.');
strSuffix = strFileName.Mid(nIndex+1);
strSuffix.MakeUpper();
if ( strSuffix=="AVI" )
{
strAVI = strFileName;
}
}
}
tempFind.Close();
CFileFind tempFind;
CString strPath = _T("");
char path[150];
getcurrentDirectory(path,sizeof(path));
strPath = path;
strPath +="\\*.ini"; CFileFind ff;
BOOL res = ff.FindFile(strPath);
while(res)
{
res = ff.FindNextFile();
if(!ff.IsDirectory() && !ff.IsDots())
{
//显示当前访问的文件
CString strTitle =_T("");
strTitle = ff.GetFileName();//文件名称;
strArray.Add(strTitle);
}
}else continue;
}
ff.Close();//关闭 int count = strArray.GetSize();
if(count<=0)
{
MessageBox("");
return 0;
}