MFC 获取文件夹

发布于 2024-08-07 15:36:24 字数 119 浏览 3 评论 0 原文

嘿,我如何在 MFC 中获取所有文件夹的名称?有什么例子或者我应该研究哪些课程?任何提示将非常感激。我所看到的只是 CFile,据我所见(尽管非常非常少),它看起来没有能力做我想做的事情。所以请指导我。

谢谢

Hey how do I in MFC get names of all folders? Any examples or which classes should I look into? Any hints will be really appreciated. All I saw is the CFile, which as far as I have seen (though very very little) doesn't looks like it has the ability to do what I want. So please direct me.

Thanks

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

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

发布评论

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

评论(3

深爱成瘾 2024-08-14 15:36:24

查看 CFileFind

有一个 DDJ 中的旧文章,介绍如何使用 CFileFind 实现递归搜索。

Look into CFileFind

There is an old article in DDJ on how to implement a recursive search using CFileFind.

£冰雨忧蓝° 2024-08-14 15:36:24

Google 搜索显示了一个很好的示例: 列出文件在目录中

它使用 FindFirstFileFindNextFile查找关闭

A Google search revealed an nice example in: Listing the Files in a Directory

It uses FindFirstFile, FindNextFile, and FindClose.

笨死的猪 2024-08-14 15:36:24

在 MFC 文档中查找 FindFirstFile

Look for FindFirstFile in the MFC documentation

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