Basically, I have written some DLL functions and
structures in C. I'd like to use them in C#.
I know I can dllimport and call the functions, but
currently I have to write C# code to re-state what the C
headers define (except now in C#).
So I'd convert a typedef struct (in C) to public struct
(in C#), defines are converted to public static
variables , pointers are converted to IntPtrs, etc.
Instead of going through all this converting, can C#
simply import C header files and understand the
structures so I can use them? (like in some variation of
unsafe mode?) Thanks
I believe Paul Yao has a tool that does exactly this.
-Chris
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.