Partager via


CComObject::CComObject

The constructor increments the module lock count.

CComObject( 
   void* = NULL  
);

Parameters

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

Remarks

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.

Requirements

Header: atlcom.h

See Also

Reference

CComObject Class