DllExport icon indicating copy to clipboard operation
DllExport copied to clipboard

Generate c header file?

Open you74674 opened this issue 3 years ago • 3 comments

With the "Generate .lib via MS Library Manager" option, I can write a header file and link against the lib file. Since there are only function definitions in this header file, I wonder if there can be a feature to generate not only a lib file, but also a header file? It will need the return type and the parameter type of the exported functions. Is there way to extract the these information?

you74674 avatar Mar 23 '21 07:03 you74674

Here I commented something about it https://github.com/3F/DllExport/issues/60#issuecomment-351825270

It will need the return type and the parameter type of the exported functions. Is there way to extract the these information?

Only manual implementation for today. But I think it's a good thing to review this task later as part of the Conari project to provide the feature for the projects like DllExport etc. Follow the news.

3F avatar Mar 23 '21 10:03 3F

Oh, somehow I didn't found that issue. I only searched for header but not .h. Thanks for the reply. For now maybe I should try if it can be done using cecil or some other C# tools.

you74674 avatar Mar 23 '21 10:03 you74674

@you74674 Keep it open for future tasks. It will be considered as a suggestion since it was not the first attempt to achieve this.

3F avatar Mar 24 '21 10:03 3F