[Mono-list] how to "register" a c++ class to c#?

=?GB2312?B?0rG+p7XL?= 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...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100607/5261f26a/attachment.html 


More information about the Mono-list mailing list