CFileFind::FindFile
virtual BOOL FindFile( LPCTSTR pstrName = NULL, DWORD dwUnused = 0 );Return ValueNonzero if successful; otherwise 0. To get extended error information, call the Win32 functionGetLastError.ParameterspstrNameA pointer to a string containing the name of the file to find. If you pass NULL for pstrName, FindFile does a wildcard (*.*) search.dwUnusedReserved to make FindFile polymorphic with derived classes. Must be 0.
virtual BOOL FindFile( LPCTSTR pstrName = NULL, DWORD dwUnused = 0 );Return ValueNonzero if successful; otherwise 0. To get extended error information, call the Win32 functionGetLastError.ParameterspstrNameA pointer to a string containing the name of the file to find. If you pass NULL for pstrName, FindFile does a wildcard (*.*) search.dwUnusedReserved to make FindFile polymorphic with derived classes. Must be 0.
解决方案 »
- 超难问题 求教
- 如何检测机器上是否有摄像头?
- 要从网页启动一个exe有什么办法?
- 如何突破FILE_SHARE_READ的限制?
- 优秀的专业电子书网站,强烈推荐!!!!!! 需要的朋友请进!!
- MoveFile("I:\\1\\222.txt","I:\\2\\");
- 如何在对话框资源中加入菜单?
- 请教CWnd::PreSubclassWindow函数的作用,以及何时被调用?它与SubclassWindow的联系和区别?谢谢!
- 一个 V C的工程把它做成安装包的形式,有多少种工具好用的!
- 用vs2008 编写赛普拉斯芯片的上位机时 添加CyAPI.h和CyAPI.lib后 编译出现问题
- ★请教如何在程序中用代码使工具栏上的按钮变成灰白或者CHECKED!!!!★
- 如何在原来没有上下文帮助的工程中增加上下文帮助
CString strFname;
BOOL isfind=finder.FindFile(strFind);
if(isfind){
while(isfind){
isfind = finder.FindNextFile();
if(finder.IsDots()) continue;
if(finder.IsDirectory()) continue;
strFname;=finder.GetFileName();
}
}