Serialize in C++ then deserialize in C#?

前端 未结 6 593
轮回少年
轮回少年 2020-12-15 09:40

Is there an easy way to serialize data in c++ (either to xml or binary), and then deserialize the data in C#?

I\'m working with some remote WINNT machines that won\

6条回答
  •  再見小時候
    2020-12-15 10:07

    Protocol Buffers might be useful to you.

    Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages – Java, C++, or Python.

    .NET ports are available from Marc Gravell and Jon Skeet.

提交回复
热议问题