I'm using a legacy, unmanaged, resource only c++ dll in a new c# app. I've managed to load resources from the dll using hardcoded resource numbers.
Is there any way to do this using the resource id's in C#?
The old C++ code is still being maintained, which means the resource ids/values may change. This may make the resource numbers in the c# code incorrect/invalid.
The best I can think of is to cut/paste the resource.h file into a c# class, then do some manual search/replace to format it into a c# class. This will have to be done after each change to the resource file. Is there a better way?