登录
首页 » Windows开发 » 编写可串行化类时,MFC用你指定的模式号制定一个粗略的版本控制方式。在向档案写数据时,MFC用模式标记该类的实例;而在读回数据时,MFC将档案中的记录的模式号和...

编写可串行化类时,MFC用你指定的模式号制定一个粗略的版本控制方式。在向档案写数据时,MFC用模式标记该类的实例;而在读回数据时,MFC将档案中的记录的模式号和...

于 2022-08-17 发布 文件大小:361.31 kB
0 185
下载积分: 2 下载次数: 1

代码说明:

编写可串行化类时,MFC用你指定的模式号制定一个粗略的版本控制方式。在向档案写数据时,MFC用模式标记该类的实例;而在读回数据时,MFC将档案中的记录的模式号和应用程序中使用着的 该类对象的模式号做比较,如果两模式号不匹配,则MFC发送一个CArchiveException,其m_cause 等于CArchiveException::badSchema。没有得到处理的该类异常会促使MFC显示一个对话框,提示 “非预期的文件格式”。如果每次修改对象的串行化存储格式时都能做到增加模式号,那么就不怕 这种无心的操作―试图把磁盘中存的老版本对象读入内存里的新版本对象了。 [代码性质] VC完整应用程序代码 [代码作者] 阿豪(kof) [文件大小] 369K-prepared Serializable category, the MFC with you specify the mode of development of a rough version control mode. To write data files, the MFC model with markings such examples; In reading back the data, MFC will file the record of the model and application procedures with the use of such objects, the model used for comparison, if the two patterns do not match, and then send a CArchiveException MFC, equivalent to m_cause CArchiveException : : badSchema. Not to be addressed such abnormal prompted MFC will show a dialog box, suggesting that "unintended file format." If every amendment targets of serial storage format can achieve the increase mode, so it

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ZVCHAT. Chul Yu chat rooms is that it is simple and practical features.
    ZVCHAT.哲雨聊天室简单实用是它的特点。-ZVCHAT. Chul Yu chat rooms is that it is simple and practical features.
    2023-01-14 01:35:04下载
    积分:1
  • 一个很好用的后方交会小程序,只要根据提示输入数数据,就会将你所要的结果输出。
    一个很好用的后方交会小程序,只要根据提示输入数数据,就会将你所要的结果输出。-a good resection of small programs, as long as prompted several data input, you will have to be the result output.
    2022-02-26 00:10:52下载
    积分:1
  • 简单的贪吃蛇源代码 可以打包运行在手机上
    简单的贪吃蛇源代码 可以打包运行在手机上 -Snake simple source code can be packaged to run on mobile phone at
    2023-03-11 05:15:04下载
    积分:1
  • this code is thresholding image with fuzzy c
    this code is thresholding image with fuzzy c-meam thresholding, it good result than Otsu method.
    2023-02-22 18:05:03下载
    积分:1
  • 基于VC6.0的音频动态处理算法实现
    音频非线性动态处理属于音频效果处理的一部分,在1983年左右就有相关的研究人员提出了动态处理的传统算法。经过这些年的发展,理论研究不断取得进展,同时MATLAB的运用与仿真为算法的准确性提供了参考。随着DSP芯片计算能力的不断提高,实时数字音频效果器的实现成为可能,运用领域不断扩大。本文在掌握传统动态处理算法的基础上,学习当前为减小非线性失真提出的不同算法,权衡各算法的优缺点,在此基础上设计一种算法,达到实时处理,失真小的目的。
    2022-03-12 21:04:06下载
    积分:1
  • 上海尖端技术GPRS无线传输模块nwid支持…
    上海精致科技GPRS无线传输模块NWID配套DLL文件及使用手册,包括厂家提供的接口函数和使用方法。-Shanghai sophisticated technology GPRS wireless transmission module NWID supporting DLL files and user manual, including the manufacturers to provide the interface function and use.
    2023-08-31 23:00:03下载
    积分:1
  • xml的事例源代码
    xml的事例源代码-xml source code examples
    2022-03-28 16:53:07下载
    积分:1
  • 地理信息系统
    基于C++的基础地理信息系统的实现,采用MFC
    2022-01-22 00:28:08下载
    积分:1
  • <Multimedia framework> is worth working in this area take a look at the To...
    很值得从事这方面的同仁看一看,讲得不错,免费给你看啊,很有帮助,请支持一下本网站,真的很不错!- is worth working in this area take a look at the Tongren, speak well, look for free Here you are, ah, very helpful, please click Supporting this site, really very good!
    2022-03-05 07:01:54下载
    积分:1
  • 桌面向导运行结果的主要形式如图1.1所示。deskt…
    桌面精灵的主窗体运行结果如图1.1所示。桌面精灵模块是以阴历和阳历相结合的方式显示的日历,其中还包含二十四节气以及一些中西方节日,这些特殊的日期都用不同的颜色进行标注。-Desktop wizard to run the results of the main form as shown in Figure 1.1. Desktop Wizard module is based on a combination of lunar and solar calendar display calendar, which also contains the 24 solar terms, and some Western holidays, these special dates are marked in different colors.
    2023-03-14 00:20:03下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载