Implementing a Class Factory

ActiveX Designers must have class factories to create instances of their visual designer and run-time object. You can support either the IClassFactory or IClassFactory2 interface for each object. See the  COM Programmer's Reference in the Platform SDK of MSDN for more information on these two interfaces.

All licensing of ActiveX Designers is handled through the IClassFactory2 interface. If either your visual designer or your run-time object must be licensed, use IClassFactory2 to implement the class factory for that component. If no license is required for the component, use IClassFactory.