CComObjectGlobal Class

這個類別會處理包含在您的 Base 物件的模組的參考次數。

template< 
   class Base  
> 
class CComObjectGlobal : 
   public Base

參數

Members

公用建構函式

名稱

描述

CComObjectGlobal::CComObjectGlobal

建構函式。

CComObjectGlobal::~CComObjectGlobal

解構函式。

公用方法

名稱

描述

CComObjectGlobal::AddRef

實作全域 AddRef

CComObjectGlobal::QueryInterface

實作全域 QueryInterface

CComObjectGlobal::Release

實作全域 版本

公用資料成員

名稱

描述

CComObjectGlobal::m_hResFinalConstruct

包含在 CComObjectGlobal 建構物件時所傳回的 HRESULT

備註

CComObjectGlobal 處理包含在您的 Base 物件的模組的參考次數。 CComObjectGlobal 確保您的物件不會被刪除,只要未釋放模組。 您的物件,當整個模組的參考計數會變成零,則只會移除。

例如,使用, CComObjectGlobalClass Factory,以保留由它的所有用戶端都共用的通用全域物件。

繼承階層架構

Base

CComObjectGlobal

需求

Header: atlcom.h

請參閱

參考

CComObjectStack Class

CComAggObject Class

CComObject Class

其他資源

ATL Class Overview