好C++目录和文件库?

发布于 2024-08-05 07:15:26 字数 1539 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

机场等船 2024-08-12 07:15:26

您可以通过 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

妞丶爷亲个 2024-08-12 07:15:26

您可以使用 MFC 的 CFindFileWTL 也有 CFindFile 的端口,它位于 atlmisc.h

You can use MFC'c CFindFile. WTL has also a port of CFindFile, it's located in atlmisc.h

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文