Presentation is loading. Please wait.

Presentation is loading. Please wait.

Presented By Justas Raslanas

Similar presentations


Presentation on theme: "Presented By Justas Raslanas"— Presentation transcript:

1 Presented By Justas Raslanas
COM/COM+ Presented By Justas Raslanas

2 Table of contents What is COM? Why COM? Technical details COM+

3 What is COM? Component Object Model (COM) is a binary-interface standard for software components introduced by Microsoft in 1993. COM is the basis for several other Microsoft technologies and frameworks, including OLE, ActiveX, COM+ and DCOM.

4 Why COM? In the early days of programming, programmers kept their function libraries in separate files called object files, which contained the compiled version of the code. There were disadvantages, like waste of storage space, because each executable had a copy of the function library embedded in it. There was one more serious limitation -- client applications written in different programming languages as the function libraries could not be used together. Components built in any language according to COM specification can be used with a client in any other language.

5 Technical details Different component types are identified by class IDs (CLSIDs), which are Globally Unique Identifiers (GUIDs).  Each COM component exposes its functionality through one or more interfaces. COM interfaces have bindings in several languages, such as C, C++, Visual Basic, Delphi, Python. All access to components is done through the methods of the interfaces.

6 Interfaces All COM components implement the IUnknown (custom) interface, which exposes methods for reference counting and type conversion (casting).

7 Classes A COM class ("coclass") is a concrete implementation of one or more interfaces, and closely resembles classes in object-oriented programming languages.

8 Programming COM is a language agnostic binary standard that can be developed in any programming language capable of understanding and implementing its binary defined data types and interfaces.

9 What is COM+? COM+ is a better version of COM.
COM+ combines enhancements to traditional COM-based development with many useful programming and administrative services. COM+ improvements are significant, including the following: COM+ implements a threading model called neutral apartment threading. COM+ supports components with a special environment called a context. COM+ provides role-based security, asynchronous object execution, and a built-in moniker that represents a reference to an object instance running on an out-of-process server.

10 Reference cocreateinstance gIns/Concepts/com.html#//apple_ref/doc/uid/ CJBEJBHH

11 Questions?


Download ppt "Presented By Justas Raslanas"

Similar presentations


Ads by Google