[Mono-list] how to "register" a c++ class to c#?
fatfatson at gmail.com
Sun Jun 6 23:13:53 EDT 2010
hi,David! i don't think we need facing the name-mangling problem, because i
just need a way to "export" a C function pointer to c# at runtime,
by placing the "&" operator before a function name, i can get its
address, then pass it as an userdata to C# and when call in C#, it should
pass the userdata back to me so i can make a call to the real function.
as i know , all the above is implemented as the "P/Invoke" now, but what i
need additonally is how to create a C# class on the fly, then use some C
functions to pretend as its method. is this ok?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list