gpt4 book ai didi

.net - .NET 组件和 COM 组件有什么区别

转载 作者:行者123 更新时间:2023-12-02 03:59:55 26 4
gpt4 key购买 nike

.NET 组件和 COM 组件之间有什么区别,有时我们使用 .NET 组件包含在我们的项目中,有时我们包含 COM 引用。背后的想法是什么?

最佳答案

.NET 组件是托管代码(内存处理已为您完成)

COM是软件组件的接口(interface)标准。 COM 组件是非托管代码(使用引用计数执行内存处置)。

来自here :

How are COM and .NET related?

COM and .NET are complementary developmenttechnologies. The .NET Common LanguageRuntime provides bi-directional,transparent integration with COM. Thismeans that COM and .NET applicationsand components can use functionalityfrom each system. This protects yourexisting investments in COMapplications while allowing you totake advantage of .NET at a controlledpace. COM and .NET can achieve similarresults. The .NET Framework providesdevelopers with a significant numberof benefits including a more robust,evidence-based security model,automatic memory management and nativeWeb services support. For newdevelopment, Microsoft recommends .NETas a preferred technology because ofits powerful managed runtimeenvironment and services.

关于.net - .NET 组件和 COM 组件有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/688456/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com