Redirecting data from MFC CArchive to boost::archive::xml_oarchive

这一生的挚爱 提交于 2019-12-12 00:57:01

问题


We are rewriting an old MFC VC++ UI component in C# .NET

there are multiple applications involved here which share data using binary serialized files created using CArchive functionality provided by MFC.

New requirements only ask us to rewrite UI component without changing anything is current business logic. As a solution for this issue, we are planning to change MFC binary serialization with boost XML serialization so that that same XML serialized data can be processes by C# XML parser and existing functionality remains as it is.

Two questions here :

1) Will there be any issues at boost end as we are using a different XML parser at C# end ?

2) How can we minimize code changes in existing application ?

I had a look at "Boost::Serialization and MFC Doc/View architecture" link and it looks like a great way to change existing binary serialized files to XML format.

We have around 20 classes derived from one base class, all of which are serialized. Any pointers to have minimum code changes will be of great help. Thanks.

来源:https://stackoverflow.com/questions/37530356/redirecting-data-from-mfc-carchive-to-boostarchivexml-oarchive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!