Export (0) Print
Expand All
Expand Minimize

DECLARE_CLASSFACTORY

Declares CComClassFactory to be the class factory.

DECLARE_CLASSFACTORY( )

Remarks

CComCoClass uses this macro to declare the default class factory for your object.

Example

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

See Also

Aggregation and Class Factory Macros | ATL Macros | DECLARE_CLASSFACTORY_EX | DECLARE_CLASSFACTORY2 | DECLARE_CLASSFACTORY_AUTO_THREAD | DECLARE_CLASSFACTORY_SINGLETON

Show:
© 2014 Microsoft