I'm trying to make something in c# and to add some speed I want some of the methods to be done in c++. I have done something like this in java before and it was really fun and somewhat easy. Trying to do this in c# has been frustrating. The easiest part in java is now the hardest part with c#: finding out what parameters to use in the native/extern. With things like int,double,and other rudimentary types it is simple, but how would I do this with more complex things like structs and classes? With java there is a program in the jdk called javah which does this for you, but after a good 3 hours of googling I have found no such thing for a c#/c++ bridge. Am I oblivious or is there no such program for c#?
I know about [DllImport] I was wondering how to turn public static extern void ExternFunction(MyCustomStruct m)
to a c++ signature