Поделиться через


CComObject::CComObject

The constructor increments the module lock count.

CComObject(
   void* = NULL 
);

Параметры

  • void*
    [in] This unnamed parameter is not used. It exists for symmetry with other CComXXXObjectXXX constructors.

Заметки

The destructor decrements it.

If a CComObject-derived object is successfully constructed using the new operator, the initial reference count is 0. To set the reference count to the proper value (1), make a call to the AddRef function.

Требования

Header: atlcom.h

См. также

Основные понятия

CComObject Class

CComObject Members