all groups > dotnet clr > september 2004 >
You're in the

dotnet clr

group:

Handling managed events from unmanaged class



Handling managed events from unmanaged class Alex
9/24/2004 2:07:04 PM
dotnet clr: I have a C# class MyClass which implements events and delegates.
I am consuming this class from unmanaged class using gcroot template as
follows:

gcroot<MyClass*> m_pMyClass ;

My question is how can I instantiate delegates, event handlers and
subscribe to events from unmanaged class using gcroot template pointer?
Can you provide or refer me to code examples?

Thanks
RE: Handling managed events from unmanaged class Nadav
9/27/2004 11:51:02 PM
Hi Alex,

I would rather expose the managed class through COM Interop, it would be
much easier to interact with it, events could be implemented through the
common COM sink interface classes and exposed as managed 'event's.

Nadav
http://www.ddevel.com

[quoted text, click to view]
AddThis Social Bookmark Button