• 首页
  • 期刊简介
  • 编委会
  • 投稿指南
  • 收录情况
  • 杂志订阅
  • 联系我们
引用本文:李传可.基于MFC的文件快速查找软件开发[J].软件工程,2019,22(4):10-12.【点击复制】
【打印本页】   【下载PDF全文】   【查看/发表评论】  【下载PDF阅读器】  
←前一篇|后一篇→ 过刊浏览
分享到: 微信 更多
基于MFC的文件快速查找软件开发
李传可
(上海政法学院图书馆,上海 201701)
摘 要: 在VS2010开发平台上以MFC基于对话框为开发框架,实现对指定目录路径的自动保存,并在该路径下根 据选择的文件类型,进行快速检索的功能。实现逻辑为读取EDIT控件上的路径,然后调用MFC基类CFileFind的成员函 数,遍历该路径下的所有文件,并将文件名等相关数据同步到Report格式的List控件中,最后通过鼠标双击响应函数来 调用系统API函数ShellExecute()打开指定文件。
关键词: MFC;List控件;遍历;软件开发;文件查找
中图分类号: TP311.5    文献标识码: A
Software Development of Fast File Searching Based on MFC
LI Chuanke
( Shanghai University of Political Science and Law, Shanghai 201701, China)
Abstract: In Visual Studio 2010 platform,use dialog-based MFC as developing frame,to realize the auto-saving of the specified path to configurate file and quick search in accordance with the selected file types through such path.After reading the path of Edit Control,call member function of CFileFind Class to traverse all files under that path,then copy file names and other related data to list control in LVS_REPORT Mode.Lastly call the ShellExecute API function on the MouseEvent function with Double-Clicking to open selected file by ShellExecute().
Keywords: MFC;List control;traversal;software development;file search


版权所有:软件工程杂志社
地址:辽宁省沈阳市浑南区新秀街2号 邮政编码:110179
电话:0411-84767887 传真:0411-84835089 Email:semagazine@neusoft.edu.cn
备案号:辽ICP备17007376号-1
技术支持:北京勤云科技发展有限公司

用微信扫一扫

用微信扫一扫