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

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

于 2022-08-17 发布 文件大小:361.31 kB
0 274
下载积分: 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 个回复

  • 用一个生产工具,用于局域网天、小时、服务器和客户端组件2。
    一个用vb制作的局域网络天工具,分服务器端和客户端2部分。-with a production tool for LAN days, hours, server and client component 2.
    2022-03-22 14:41:50下载
    积分:1
  • visual basic TCP routing sample programming
    visual basic TCP routing sample programming
    2022-11-26 07:30:03下载
    积分:1
  • butterfly on nature
    butterfly on nature-butterfly on nature
    2022-03-28 13:47:16下载
    积分:1
  • MFC 图像处理
    这只是一个简单 MFC 可执行代码解决方案为各种图像处理的.raw 图像文件。该解决方案包含灰色-图像处理 (平滑、 锐化、 对比度拉伸、 缩放等) 和彩色图像 (RGB/HSI/YUV 颜色空间开关,平滑、 锐化、 对比度拉伸,等等。)我是只是本科的学生,也是初学图像处理算法,所以我必须承认这个源代码可能无法在所有有用。但我希望那是一个人,希望在类似层面上和我一起,将至少一个小提示在中找到他自己做。
    2023-08-14 01:30:07下载
    积分:1
  • windows sever 2008 激活
    windows sever 2008 激活-windows sever 2008 ??活
    2023-03-15 02:15:04下载
    积分:1
  • 本程序是一个定时器程序,很类似微软的定时器
    本程序是一个定时器程序,很类似微软的定时器-this procedure is a timer procedure is very similar to Microsoft"s timer
    2022-01-26 02:09:46下载
    积分:1
  • java实现套接字通信
    用java语言实现套接字通信,实现客户端与服务器的通信,可以聊天通信,是一个小型的聊天工具。
    2022-01-25 20:47:31下载
    积分:1
  • List of useful functions to treat SQL values
    List of useful functions to treat SQL values
    2023-08-29 07:15:03下载
    积分:1
  • dfft source code! Many do not have to, open source! Is open!
    dfft源代码!多的不说了,开放源代码!就是开放!-dfft source code! Many do not have to, open source! Is open!
    2022-01-24 13:57:34下载
    积分:1
  • windows in the game bring their own de
    windows中自带的游戏扫雷代码,包括界面,功能都相同,游戏可以设置初级,中级,高级,可改变界面颜色,设置声音,初级,中级,和高级保存一个最好记录。-windows in the game bring their own de-mining code, including interface, features are the same, the game can set the primary, intermediate and advanced, can change the interface colors, sound settings, primary, intermediate, and advanced to preserve the best record.
    2022-02-14 19:34:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载