|
A co-worker and myself are working on a joint project. His backend is in C++ because he needs to interface with some hardware that only has a C++ interface. He has programmed a wrapper (.dll) for me to call methods from via a C# front-end. However, we are looking to be able share constants between the two.
He suggested having a list of #define but there isn't any #define that is usable in C# other than for #if directives.
I guess we could both use CONST but I am wondering how we could use a single file as a reference so we only have to modify values in a single file.
As he stated, if we just could reference a .h file, we could put a bunch of common constants and it call it a day. Unfortunately, this isn't possible between C++ and C# as I see it.
Any thoughts or suggestions on solving this issue?
|