Adding an MFC Class from a Type Library
You do not need to create your MFC project with Automation enabled to add a class from a type library.
A type library contains a binary description of the interfaces exposed by a component, defining the methods along with their parameters and return types. Your type library must be registered for it to appear in the Available type libraries list in the Add Class from Typelib Wizard. See "Inside Distributed COM: Type Libraries and Language Integration" in the MSDN library for more information.
To add an MFC class from a type library
In either Solution Explorer or Class View, right-click the name of the project to which you want to add the class.
From the shortcut menu, click Add, and then click Add Class.
In the wizard, you can add more than one class in a type library. Likewise, you can add classes from more than one type library in a single wizard session.
The wizard creates an MFC class, derived from COleDispatchDriver, for each interface you add from the selected type library. COleDispatchDriver implements the client side of OLE automation.