How to get MFC serialization going without a CWinApp-derived class?

送分小仙女□ 提交于 2020-01-17 06:04:19

问题


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.

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

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

Thanks for your inputs.

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.


回答1:


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.



来源:https://stackoverflow.com/questions/37943657/how-to-get-mfc-serialization-going-without-a-cwinapp-derived-class

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