简体   繁体   English

VB6中的二进制序列化?

[英]Binary Serialization in VB6?

In C# I open a MemoryStream and use the BinaryFormatter to serialize an object[]. 在C#中,我打开一个MemoryStream并使用BinaryFormatter序列化一个对象[]。 I need to do the same thing in VB6, and I need the two to match exactly. 我需要在VB6中做同样的事情,并且我需要两者完全匹配。 Is this possible? 这可能吗?

Sincerely doubtful. 真心怀疑。 Binary serialization is not guaranteed to be compatible between versions of .NET let alone back to VB 6. XML serialization might be able to help you here. 不能保证二进制序列化在.NET版本之间是兼容的,更不用说回到VB 6了。XML序列化可能在这里为您提供帮助。

在C#中创建一个COM可见的DLL,并在需要序列化时从VB6调用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM