Wiki Home

COMC omponent


Namespace: Wiki
From Designing Component - based Applications by Mary Kirtland ISBN 0735605238

The Component Object Model (COM) defines a model for component interaction. The goal of COM is to let developers assemble applications from prebuilt parts, or COMComponents, irrespective of where the components are located or what development language was used to implement them. The COM model is defined in such a way that components and applications can evolve independently over time.

The COM programming model is based on objects, interfaces, classes, and components. COM objects are instances of COM classes, which are implementations of one or more COM interfaces. An interface defines a set of related methods; it represents a contract between the client and the implementer of the interface. All COM interfaces derive from the fundamental interface IUnknown. COM components are binary units of software that can be used to create COM objects. Components include COM classes, an implementation of a class object used to create instances of each class, and the code to create the regristry entries needed to locate the classes. Most components available today, including many system services provided by Windows, are Automation-aware components that expose dual-interfaces. These components are accessible to almost every development language and programming environment including scripting languages. COM provides the basic building blocks of the three-tier Windows DNA application.

Note: Components are also referred to as Servers. See also In - Process Component and Out - Of - Process Component.

On the MS Windows platform, there are 3 basic ways to package a COMComponent or Server:
See also: COM Com Architecture, COMC omponent Example
Contributors: Roxanne Seibert
Category C _ O _ M
( Topic last updated: 1999.11.13 09:10:43 PM )