.NET COM object with events used in C++

  • Thread starter Thread starter stein
  • Start date Start date
S

stein

I need to create a COM object (in C#) that both has methods a client
can call and events that a client can receieve. The client will be
written i C++. I have already made it possible to call methods
(setting ComVisible, using GAC og regasm), but I have no solution for
the events.

What is the best way of doing this? I have been looking at IDispatch
and IConnectionPoint, but I can not find any runnable examples that
shows me a proof-of-concept that I can continue to build on.

any help appriciated
S
 
I need to create a COM object (in C#) that both has methods a client
can call and events that a client can receieve. The client will be
written i C++. I have already made it possible to call methods
(setting ComVisible, using GAC og regasm), but I have no solution for
the events.

What is the best way of doing this? I have been looking at IDispatch
and IConnectionPoint, but I can not find any runnable examples that
shows me a proof-of-concept that I can continue to build on.

any help appriciated
S

check this out:
http://samples.gotdotnet.com/quickstart/howto/doc/Interop/TestClient_2.aspx

HTH,
Petar Atanasov
http://a-wake.net
 
Back
Top