如何使用C#实现连接点? [英] how to implement connection points with C#?

查看:232
本文介绍了如何使用C#实现连接点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#实现连接点?

How can I implement a connection point with C#?

我必须使用c#来实现流程组件,现在想实现连接点功能.你能帮我吗?

I have to use c # to achieve the process component, and now would like to achieve the connection point function. Can you help me?

现在我将C#com exe视为一个dll,并将其添加为引用.并像dll一样使用它.并使用​​事件来处理我的问题.太简单了!

Now i treat the C# com exe as a dll ,and add it as a reference.And use it like a dll.And use event to deal with my problem.It was so easy!

现在我使用后期绑定来调用com,但是如何使用事件或连接点呢?

Now i use late binding to call the com ,but how can i use event or connection point?

可以使用吗?

推荐答案

不知道,但是这里有一些阅读材料供您参考之前的版本: http://msdn.microsoft.com/en-us/magazine/cc163361.aspx
No idea, but here''s some reading material for you in case you haven''t come across it before: http://msdn.microsoft.com/en-us/magazine/cc163361.aspx


我相信这完全是错误的做法.没有人需要C#中的COM连接点.您可以为C#客户端使用C ++ COM连接点,也可以直接从C#客户端向C ++进行调用.我想不出需要为C ++客户端编写C#连接点的任何情况...

;)
I believe this would thw rong approach altogether. Nobody needs COM Connection Points in C#. You either use C++ COM Connection Points for your C# clients, or you just make direct calls from C# clients into C++. I can''t think of any scenario where it would be necessary to write C# Connection Points for C++ clients...

;)


这篇关于如何使用C#实现连接点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆