MFC 获取文件夹
嘿,我如何在 MFC 中获取所有文件夹的名称?有什么例子或者我应该研究哪些课程?任何提示将非常感激。我所看到的只是 CFile,据我所见(尽管非常非常少),它看起来没有能力做我想做的事情。所以请指导我。
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
嘿,我如何在 MFC 中获取所有文件夹的名称?有什么例子或者我应该研究哪些课程?任何提示将非常感激。我所看到的只是 CFile,据我所见(尽管非常非常少),它看起来没有能力做我想做的事情。所以请指导我。
谢谢
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
查看 CFileFind
有一个 DDJ 中的旧文章,介绍如何使用
CFileFind
实现递归搜索。Look into CFileFind
There is an old article in DDJ on how to implement a recursive search using
CFileFind
.Google 搜索显示了一个很好的示例: 列出文件在目录中
它使用 FindFirstFile、FindNextFile 和 查找关闭。
A Google search revealed an nice example in: Listing the Files in a Directory
It uses FindFirstFile, FindNextFile, and FindClose.
在 MFC 文档中查找 FindFirstFile
Look for FindFirstFile in the MFC documentation