.NET - COM(+) 090903

本文详细介绍了Microsoft的组件对象模型(COM)及其扩展COM+的基本概念和技术特性。包括COM的工作原理、对象模型、接口标准以及COM+提供的资源管理和安全性增强等功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

- Referred to ‘MSDN -> Win32 and COM Development’  

 

COM objects can be created with a variety of programming languages. Object-oriented languages, such as C++, provide programming mechanisms that simplify the implementation of COM objects. These objects can be within a single process, in other processes, even on remote computers.

 

To understand COM (and therefore all COM-based technologies), it is crucial to understand that it is not an object-oriented language but a standard. Nor does COM specify how an application should be structured; language, structure, and implementation details are left to the application developer. Rather, COM specifies an object model and programming requirements that enable COM objects (also called COM components, or sometimes simply objects) to interact with other objects. These objects can be within a single process, in other processes, and can even be on remote computers. They can have been written in other languages, and they may be structurally quite dissimilar, which is why COM is referred to as a binary standard; a standard that applies after a program has been translated to binary machine code.

 

Besides specifying the basic binary object standard, COM defines certain basic interfaces that provide functions common to all COM-based technologies, and it provides a small number of functions that all components require. COM also defines how objects work together over a distributed environment and has added security features to help provide system and component integrity.

 

COM is the foundation technology for Microsoft's OLE (compound documents) and ActiveX (Internet-enabled components) technologies.

 

 

COM+ is an evolution [ˌi:vəˈlu:ʃən] of Microsoft Component Object Model (COM) and Microsoft Transaction Server (MTS). COM+ builds on and extends applications written using COM, MTS, and other COM-based technologies.

 

COM+ handles many of the resource management tasks that you previously had to program yourself, such as thread allocation and security. COM+ also makes your applications more scalable by providing thread pooling, object pooling, and just-in-time object activation.

 

COM+ provides several security features that you can use to help protect your COM+ applications, ranging from services to APIs you can call within code.

 

The COM+ object pooling service enables you to configure a component to have instances of it kept active in a pool, ready to be used by any client.

 

Just-in-time (JIT) activation is an automatic COM+ service that can help you use server resources more efficiently, particularly when scaling up your application to do high-volume transactions.

 

但是它的不足是依赖于Microsoft的操作系统平台,因而在其它开发系统平台(UnixLinux)上不能发挥作用。

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值