简体   繁体   English

ActiveX和.NET

[英]ActiveX and .NET

I used to work with DCOM (out process exe) and COM (inprocess dll) in delphi language. 我曾经使用Delphi语言处理DCOM(进程外exe)和COM(进程内dll)。 Is there any substitute for them in .NET language? .NET语言是否可以替代它们? Does Microsoft still uses the concept of ActiveX? Microsoft仍然使用ActiveX的概念吗?

Thanks 谢谢

You can expose a COM interface for your .NET class by decorating your .NET class with various attributes. 您可以通过用各种属性修饰.NET类来公开.NET类的COM接口。 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. ActiveX基本上只是“网页中的COM”,因此它继续受到.NET对COM的支持。 However, distributing ActiveX objects is a lot more difficult - see my answer to this question . 但是,分发ActiveX对象要困难得多-请参阅我对这个问题的回答

Generally speaking, VB.NET has better support for COM than C#. 一般来说,VB.NET对COM的支持比对C#更好。 However, for other .NET development, C# is the more popular language. 但是,对于其他.NET开发,C#是更流行的语言。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM