Automatically creating C# wrappers from c headers?
Posted
by Winner
on Stack Overflow
See other posts from Stack Overflow
or by Winner
Published on 2010-03-25T16:50:37Z
Indexed on
2010/03/25
16:53 UTC
Read the original article
Hit count: 260
Is there a way to automatically create p/invoke wrappers for .net from a c header?
Of course I could create them by hand, but maintaining them would be painful, and I'd probably make a mistake somewhere resulting in hard to debug crashes.
I tried SWIG, but it created full classes where simple structs would be sufficient.
I'd prefer if the output worked on mono too, but that is not necessary.
© Stack Overflow or respective owner