如何在没有CWinApp派生类的情况下实现MFC序列化? [英] How to get MFC serialization going without a CWinApp-derived class?

查看:77
本文介绍了如何在没有CWinApp派生类的情况下实现MFC序列化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为旧的MFC应用程序编写C ++ / CLI包装器,到目前为止,我已经能够读取大多数数据并将其转换为C#可读格式。

I am writing a C++/CLI wrapper for an old MFC application, so far i have been able to read most of the data and convert the same into C# readable format.

到目前为止,我只是在努力读取数据,担心将数据写回到旧的MFC代码会影响序列化?

As of now i am only struggling with reading data and am worried will writing data back to old MFC code affect serialization ?

你们还能分享/提及其他问题吗?在为MFC代码编写C ++ / CLI包装器时我可能会面临风险?

Can you guys share/mention any other risks i might face while writing C++/CLI wrapper for MFC code ?

感谢您的输入。

这问题是 将数据从MFC CA重定向到boost :: archive的延续:: xml_oarchive ,如果您需要更多详细信息,请仔细阅读。并告诉我是否需要您提供更多信息。

this question is a continuation of "Redirecting data from MFC CArchive to boost::archive::xml_oarchive" Please go through this if you need more details. and do let me know if you need more information from me.

推荐答案

我对此的经验是,只要我们不要更改现有的类/结构定义和变量定义,对象序列化不会受到影响。

the experience i had with this is, as long as we do not change existing "class/structure definitions" and "variable definitions", object serialization is not affected.

这篇关于如何在没有CWinApp派生类的情况下实现MFC序列化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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