VC++用ini文件保存最近打开文件的记录MRU

上传者: 38660295 | 上传时间: 2022-05-11 16:38:18 | 文件大小: 50KB | 文件类型: RAR
内容索引:VC/C++源码,文件操作,ini,记忆菜单  VC++的MFC对最近文件进行了包装,它使用户无需编写任何代码就可实现最近文件菜单。但这种方法也有缺陷:
   ①用户程序必须使用文档、视图结构,只能利用它提供的文档打开和保存文件,如果你使用自己编写的函数打开和保存文件,绕过了它的文档,则最近文件将无法使用。
   ②这种最近文件保存在注册表中,不易清除,容易形成注册表中垃圾,也没有提供用户清除最近文件的权利,不利于用户隐私的保护。
   用ini文件实现最近文件可以解决上述问题,而且用编程控制MRU更灵活,可以提供更多功能。

文件下载

资源详情

[{"title":"( 34 个子文件 50KB ) VC++用ini文件保存最近打开文件的记录MRU","children":[{"title":"okbase.net","children":[{"title":"MruFileTest","children":[{"title":"MruFileTest","children":[{"title":"res","children":[{"title":"MruFileTestDoc.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"Toolbar.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"MruFileTest.rc2 <span style='color:#111;'> 403B </span>","children":null,"spread":false},{"title":"MruFileTest.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"MruFile.h <span style='color:#111;'> 878B </span>","children":null,"spread":false},{"title":"MruFileTest.dsw <span style='color:#111;'> 545B </span>","children":null,"spread":false},{"title":"MruFile.cpp <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"MruFileTest.rc <span style='color:#111;'> 11.76KB </span>","children":null,"spread":false},{"title":"MruFileTest.h <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":"MruFileTestView.cpp <span style='color:#111;'> 7.40KB </span>","children":null,"spread":false},{"title":"MainFrm.cpp <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 971B </span>","children":null,"spread":false},{"title":"MainFrm.h <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"MruFileTestDoc.cpp <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"MruFileTest.dsp <span style='color:#111;'> 4.67KB </span>","children":null,"spread":false},{"title":"MruFileTestView.h <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false},{"title":"MruFileTest.clw <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"MruFileTestDoc.h <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"MruFileTest.cpp <span style='color:#111;'> 4.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"用ini文件实现最近文件MRU.htm <span style='color:#111;'> 20.82KB </span>","children":null,"spread":false},{"title":"用ini文件实现最近文件MRU.files","children":[{"title":"f2.gif <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"pic_002.gif <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"type.css <span style='color:#111;'> 773B </span>","children":null,"spread":false},{"title":"icon1.gif <span style='color:#111;'> 579B </span>","children":null,"spread":false},{"title":"f3.gif <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"main_03.gif <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"black.GIF <span style='color:#111;'> 826B </span>","children":null,"spread":false},{"title":"fl.gif <span style='color:#111;'> 15.47KB </span>","children":null,"spread":false},{"title":"dabao.jpg <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"main_02.gif <span style='color:#111;'> 135B </span>","children":null,"spread":false},{"title":"main_01.gif <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"block.gif <span style='color:#111;'> 43B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明