We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
尝试 Boost.Filesystem 库。
Try the Boost.Filesystem library.
您可以通过 FindFirstFile 和 < a href="http://msdn.microsoft.com/en-us/library/aa364428(VS.85).aspx" rel="nofollow noreferrer">FindNextFile。它们很简单 :)
MSDN 示例: 列出 a 中的文件目录
除了@cjm建议的Boost之外,如果你想使用MFC库:
使用 C++ MFC 进行递归文件搜索
You can use SDK APIs Using FindFirstFile and FindNextFile. They are simple :)
MSDN Example: Listing the Files in a Directory
Apart from Boost suggested by @cjm, if you want to use MFC library:
Recursive file search using C++ MFC
您可以使用 MFC 的 CFindFile。 WTL 也有 CFindFile 的端口,它位于 atlmisc.h
You can use MFC'c CFindFile. WTL has also a port of CFindFile, it's located in atlmisc.h