DECLARE_CLASSFACTORY_SINGLETON

DECLARE_CLASSFACTORY_SINGLETON( obj )

Parameters

obj

[in] The name of your class object.

Remarks

Declares CComClassFactorySingleton to be the class factory. For example:

class CMyClass : ..., public CComCoClass< ... >
{
   ...
   DECLARE_CLASSFACTORY_SINGLETON(CMyClass)
   ...
};

CComCoClass includes the DECLARE_CLASSFACTORY macro, which specifies CComClassFactory as the default class factory. However, by including the DECLARE_CLASSFACTORY_SINGLETON macro in your object's class definition, you override this default.

ATL Macros and Global Functions

See Also

DECLARE_CLASSFACTORY2, DECLARE_CLASSFACTORY_EX, DECLARE_CLASSFACTORY_AUTO_THREAD