Skip to content

Latest commit

 

History

History
68 lines (55 loc) · 2.34 KB

File metadata and controls

68 lines (55 loc) · 2.34 KB
title CComObjectRoot Class | Microsoft Docs
ms.custom
ms.date 11/01/2016
ms.prod visual-studio-dev14
ms.reviewer
ms.suite
ms.technology
devlang-cpp
ms.tgt_pltfrm
ms.topic reference
f1_keywords
CComObjectRoot
dev_langs
C++
helpviewer_keywords
CComObjectRoot class
ms.assetid f8797c38-6e73-4f67-85c2-71654cffa8eb
caps.latest.revision 16
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

CComObjectRoot Class

This typedef of CComObjectRootEx is templatized on the default threading model of the server.

Syntax

typedef CComObjectRootEx<CComObjectThreadModel> CComObjectRoot;

Remarks

CComObjectRoot is a typedef of CComObjectRootEx templatized on the default threading model of the server. Thus CComObjectThreadModel will reference either CComSingleThreadModel or CComMultiThreadModel.

CComObjectRootEx handles object reference count management for both nonaggregated and aggregated objects. It holds the object reference count if your object is not being aggregated, and holds the pointer to the outer unknown if your object is being aggregated. For aggregated objects, CComObjectRootEx methods can be used to handle the failure of the inner object to construct, and to protect the outer object from deletion when inner interfaces are released or the inner object is deleted.

Requirements

Header: atlcom.h

See Also

CComObjectRootEx Class Members
CComObjectRootEx Class
CComAggObject Class
CComObject Class
CComPolyObject Class
Class Overview