I am developing a software package that transmits messages. Currently I have a header file that contains definition of message IDs. My coworker is creating a software tool in C# and needs access to these IDs. What is the best way for our software to access these IDs?
More details:
He and I don’t have control over what language we use. He wants to make 2 copies of the same list. I am always hesitant to make copies of the same code. (There will be a lot of message IDs). Is there an easy way for both these tools to access the same ID?
C++/CLI is your friend. I had the exact same scenario in one of my projects and I found C++/CLI very usefull in this respect. My design was based on 3 layers:
This way, I could easily reuse my C++ definitions without any duplications