Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我曾经在delphi语言中使用DCOM(out process exe)和COM(inprocess dll)。.NET 语言中是否有任何替代品?Microsoft 是否仍然使用 ActiveX 的概念?
谢谢
您可以通过使用各种属性装饰您的 .NET 类来为您的 .NET 类公开一个 COM 接口。有关教程,请参阅这篇文章。
ActiveX 基本上只是“网页中的 COM”,因此它继续受到 .NET 对 COM 的支持的支持。但是,分发 ActiveX 对象要困难得多——请参阅我对这个问题的回答。
一般来说,VB.NET 对 COM 的支持比 C# 好。但是,对于其他 .NET 开发,C# 是更流行的语言。