Reading structures from .h files

Reading structures from .h files

I have a C# application that communicates to a piece of hardware on a local network. The "interface" is defined in a .h file, which consists of enums, structures, and unfortunately unions.

The problem is, this .h file changes with new data fields and new enums added weekly.

Does anybody know a way to include the .h file in a C#/.NET build so the enums/structures/unions are visible within my code ?

Add Comment

Put code snippets inside language tags:
[language] [/language]

Examples:
[javascript] [/javascript]
[actionscript] [/actionscript]
[csharp] [/csharp]

See here for supported languages.

Javascript must be enabled to submit anonymous comments - or you can login.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.