I've got a server written in C++ that sits at the end of a named pipe, um, serving things. The commands which can be sent to the server are defined in an enum which is located in a header file.
enum {
e_doThing1,
e_doThing2
...
e_doLastThing
};
The value of the desired enum is put into the first byte of messages sent to the server so it knows what to do. I am now writing a C# client which needs access to the services.
Is there any way I can include the header into the C# code so I don't have to maintain the same list in two locations?
Thanks, Patrick