Basic COM   «Prev  Next»
Lesson 1

Component Object Model Basics

The last module discussed many of COM's core concepts. We studied the binary requirements of COM methods and interfaces, COM objects, and IUnknown. We also used IDL to define COM interfaces and COM objects in a type library. This module continues the discussion of core COM concepts. We will examine how COM objects are created, COM servers, and COM clients.
At the end of this module you will be able to:
  1. Understand how a class factory creates instances of a COM objects
  2. List the COM requirements of an in-process COM server
  3. Describe how COM objects in an in-process server are registered
  4. Describe how COM clients create instances of COM objects and use COM interfaces
In later modules, we will put our knowledge of core concepts COM to work. We will use the active template library (ATL) to develop an in-process COM server, a COM object, and COM interfaces. We will also develop a COM client that uses our COM object.

Component Object Model

COM (Component Object Model) was one of the fastest growing models in object technology prioer to COM+ and .NET technologies. Microsoft exposes any new technology by implementing each new subsystem as a COM object. COM is the way to interact with subsystems like
  1. ADSI (Active Directory Services Interface),
  2. MTS (Microsoft Transaction Server),
  3. DirectX,
  4. Shell extensions,
  5. ActiveX controls,
  6. OLE DB (Object Linking and Embedding) and
  7. ActiveX scripting.
The central tenet of COM is the concept of language independence. COM based components can be built in wide variety of development environments. So it is better for windows developers to understand the core infrastructure of COM. This understanding will enable you to easily take advantage of those new subsystems as well as make it easier for you to expose your own subsystems.

.NET COM Complete Interoperability