Adding a Class from an ActiveX Control
You do not need to create your MFC project with Automation enabled to add a class from an ActiveX control.
An ActiveX control is a reusable software component based on the Component Object Model (COM) that supports a wide variety of OLE functionality and can be customized to fit many software needs. ActiveX controls are designed for use both in ordinary ActiveX control containers and on the Internet in World Wide Web pages.
To add an MFC class from an ActiveX control
From the shortcut menu, click Add, and then click Add Class.
In the wizard, you can add more than one interface in an ActiveX control. Likewise, you can create classes from more than one ActiveX control in a single wizard session.
You can add classes from ActiveX controls registered in your system, or you can add classes from ActiveX controls located in type library files (.tlb, .olb, .dll, .ocx, or .exe) without first registering them in your system. See Registering OLE Controls for more information on registering ActiveX controls.