MFC docview架构中的序列化 [英] serialization in MFC docview Architecture

查看:85
本文介绍了MFC docview架构中的序列化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MFC MDI应用程序从一些数据记录卡读取数据。只要应用程序正在运行,它就将数据存储在%temp%文件夹中的* .tmp文件中。当我尝试关闭应用程序时它会提示保存或丢弃数据。

当我按下保存时,它以某种文件的形式存储(应用程序生成的doc格式)。

和* .tmp文件后关闭我关闭应用程序。

当我将该文档加载到应用程序.tmp是在%temp%文件夹中生成的。



我正在实现类似的类型应用程序,我需要将我的应用程序读取的数据存储在这样的地方,我必须以doc视图格式显示它。



如何存储大量数据这是使用docview架构。

i have an MFC MDI application that reads data from some data logger card.It is storing data in *.tmp file located in %temp% folder as long as application is running .when i am trying to close app it is prompting to save or discard data.
when i press save it is storing in form of some document(App generated doc format).
and *.tmp file is getting closed after i close app.
when i load that document to application .tmp is generated in %temp% folder .

I am implementing similar kind of application and i need to store data read by my application somewhere like this and i have to show it on doc view format.

How to store large amount of data like this using docview architecture.

推荐答案

推荐的方法是使用 CArchive [ ^ ]。
The recommended method is to use a CArchive[^].


这篇关于MFC docview架构中的序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆