ActiveX 和 .NET
我曾经在delphi语言中使用DCOM(进程外exe)和COM(进程内dll)。 .NET 语言中有什么可以替代它们吗? 微软还在使用ActiveX的概念吗?
谢谢
I used to work with DCOM (out process exe) and COM (inprocess dll) in delphi language.
Is there any substitute for them in .NET language?
Does Microsoft still uses the concept of ActiveX?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过使用各种属性装饰 .NET 类来公开 .NET 类的 COM 接口。有关教程,请参阅本文。
ActiveX 基本上只是“网页中的 COM”,因此凭借 .NET 对 COM 的支持,它继续得到支持。然而,分发 ActiveX 对象要困难得多 - 请参阅我对
一般来说,VB.NET对COM的支持比C#更好。然而,对于其他 .NET 开发,C# 是更流行的语言。
You can expose a COM interface for your .NET class by decorating your .NET class with various attributes. See this article for a tutorial.
ActiveX is basically just "COM in a web-page" so it continues to be supported by virtue of .NET's support for COM. However, distributing ActiveX objects is a lot more difficult - see my answer to this question.
Generally speaking, VB.NET has better support for COM than C#. However, for other .NET development, C# is the more popular language.