DECLARE_CLASSFACTORY_EX( cf )
Parameters
cf
[in] The name of the class that implements your class factory object.
Remarks
Declares cf to be the class factory. cf must derive from CComClassFactory and override the CreateInstance method. For example:
class CMyClass : ..., public CComCoClass< ... >
{
...
DECLARE_CLASSFACTORY_EX(CMyClassFactory)
...
};
CComCoClass includes the DECLARE_CLASSFACTORY macro, which specifies CComClassFactory as the default class factory. However, by including the DECLARE_CLASSFACTORY_EX macro in your object's class definition, you override this default.
ATL Macros and Global Functions
See Also
DECLARE_CLASSFACTORY2, DECLARE_CLASSFACTORY_AUTO_THREAD, DECLARE_CLASSFACTORY_SINGLETON