By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,694 Members | 1,882 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,694 IT Pros & Developers. It's quick & easy.

.NET COM object with events used in C++

P: n/a
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

Sep 7 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
st***@hokum.net wrote:
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/quickst...tClient_2.aspx

HTH,
Petar Atanasov
http://a-wake.net
Sep 10 '07 #2

P: n/a
On Sep 10, 1:22 pm, Petar Atanasov <ppa_i...@mail.bgwrote:
st...@hokum.net wrote:
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/quickst...op/TestClient_...

HTH,
Petar Atanasovhttp://a-wake.net
Thank you for your answer, but I can not find any reference to events
in the link you sendt me. Only normal method/function calls.

S

Sep 11 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.