Every ActiveX designer must have a class factory to create instances of its visual designer and run-time object. A designer can support either the IClassFactory or IClassFactory2 interface for each object. See the COM Programmer's Reference in the Platform Software Development Kit (SDK) 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, use IClassFactory.