all groups > dotnet interop > september 2005 >
You're in the

dotnet interop

group:

How to handle dispevent in C#


How to handle dispevent in C# Ying-Shen
9/29/2005 8:55:02 PM
dotnet interop:
Hi all,
I'm trying to port a C++ program to C#, this program interoprates with a
COM component, and it needs handle hanle some disp events exposed by that
program,
in C++, this program archive this using ATL by mixing in
IDispEventSimpleImpl class and some SINK_MAP definitions.

The question is how to handle these events in C#?

I've looked at MSDN about the ComSourceInterface attribute, it talks much
about the IConnectionPoint mechanism,but I'm not sure if I can use the same
approach for disp events, I guess disp event mechanism is different to the
Connection Point approach, right?

thanks!

Re: How to handle dispevent in C# Richard T. Edwards
10/3/2005 7:07:35 AM
Code would help.

[quoted text, click to view]

AddThis Social Bookmark Button