Redirecting data from MFC CArchive to boost::archi

2019-09-14 08:27发布

问题:

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.