Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.81 KB

introduction-to-com.md

File metadata and controls

38 lines (29 loc) · 1.81 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Introduction to COM | Microsoft Docs
11/04/2016
cpp-windows
index-page
C++
COM
120735d9-db71-4ad3-a730-ce576ea2354e
11
mikeblome
mblome
ghogen

Introduction to COM

COM is the fundamental "object model" on which ActiveX Controls and OLE are built. COM allows an object to expose its functionality to other components and to host applications. It defines both how the object exposes itself and how this exposure works across processes and across networks. COM also defines the object's life cycle.

Fundamental to COM are these concepts:

  • Interfaces — the mechanism through which an object exposes its functionality.

  • IUnknown — the basic interface on which all others are based. It implements the reference counting and interface querying mechanisms running through COM.

  • Reference counting — the technique by which an object (or, strictly, an interface) decides when it is no longer being used and is therefore free to remove itself.

  • QueryInterface — the method used to query an object for a given interface.

  • Marshaling — the mechanism that enables objects to be used across thread, process, and network boundaries, allowing for location independence.

  • Aggregation — a way in which one object can make use of another.

See Also

Introduction to COM and ATL
The Component Object Model