[Mono-devel-list] Embedding mono / delegates - events
priewasser at gmx.at
Fri Nov 12 08:53:04 EST 2004
I have a problem using the embedding api
What I want to do is this:
If there is an existing C# assembly (which I can't modify) with a delegate
D and a class with an event E (of type D), I want to create an instance of
D (in c/c++), witch invokes a c/c++ method, and add this delegate to E.
At the moment I use mono_delegate_ctor (which is no longer part of
object.h) to create a delegate and add this delegate to E by invoking
This works fine as long as the add method of the event doesn't use the
Method property of the delegate, but if this property is used I get an
exception (no big surprise).
So, my question is: Is there a way to create a delegate which does what I
want (and throws no exception)?
More information about the Mono-devel-list