本文介绍了将CArchive对象反序列化为C#对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个旧应用程序,它正在使用CArchive将对象序列化为二进制文件。
由于我有源代码,我知道C ++格式的对象结构。
但是,是否可以反序列化CArchive对象C#?
当我尝试使用C#FileStream读取时,它失败并显示错误消息:
输入流不是有效的二进制文件格式。
提前谢谢...... :)
Renjith
Hi,
I have an old application and it''s using CArchive to serialize the object to binary file.
Since I have the source code, I know the object structure in C++ format.
However, is it possible to deserialize CArchive object in C# ?
When I try to read using C# FileStream, it fails with error message :
"The input stream is not a valid binary format."
Thanks in advance... :)
Renjith
推荐答案
这篇关于将CArchive对象反序列化为C#对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!