Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7175625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:20:19+00:00 2026-05-28T16:20:19+00:00

I am about to embark on a project to connect two programs, one in

  • 0

I am about to embark on a project to connect two programs, one in c#, and one in c++. I already have a working c# program, which is able to talk to other versions of itself. Before I start with the c++ version, I’ve thought of some issues:

1) I’m using protobuf-net v1. I take it the .proto files from the serializer are exactly what are required as templates for the c++ version? A google search mentioned something about pascal casing, but I have no idea if that’s important.

2) What do I do if one of the .NET types does not have a direct counterpart in c++? What if I have a decimal or a Dictionary? Do I have to modify the .proto files somehow and squish the data into a different shape? (I shall examine the files and see if I can figure it out)

3) Are there any other gotchas that people can think of? Binary formats and things like that?

EDIT
I’ve had a look at one of the proto files now. It seems .NET specific stuff is tagged eg bcl.DateTime or bcl.Decimal. Subtypes are included in the proto definitions. I’m not sure what to do about bcl types, though. If my c++ prog sees a decimal, what will it do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:20:20+00:00Added an answer on May 28, 2026 at 4:20 pm
    1. Yes, the proto files should be compatible. The casing is about conventions, which shouldn’t affect actual functionality – just the generated code etc.

    2. It’s not whether or not there’s a directly comparable type in .NET which is important – it’s whether protocol buffers support the type which is important. Protocol buffers are mostly pretty primitive – if you want to build up anything bigger, you’ll need to create your own messages.

    3. The point of protocol buffers is to make it all binary compatible on the wire, so there really shouldn’t be gotchas… read the documentation to find out about versioning policies etc. The only thing I can think of is that in the Java version at least, it’s a good idea to make enum fields optional, and give the enum type itself a zero value of “unknown” which will be used if you try to deserialize a new value which isn’t supported in deserializing code yet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm about to embark on a new project within which we require the ability
I'm about to embark on the ASP.net project which involves building a pretty powerful
I am about to embark on a project using Apache Hadoop/Hive which will involve
I'm about to embark on a project where a user will be able to
So, I'm about to embark on a fairly lengthy, time consuming project that could
I am about to embark on something I have not yet done but I
I am about to embark on a project mostly using C# that will involve
I am about to embark on a jquery journey I have not ever done.
I am about to embark upon yet another large PHP project. This time, I
I am about to embark a major django project. If I install the latest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.