Importing the Elements of a Type Library
You can use ClassWizard to wrap the elements of a type library in an MFC C++ class and add the new class to a project. A type library is a collection of controls that you either purchase or write yourself. ClassView can only view valid type libraries.
To import the elements of a type library
On the View menu, click ClassWizard.
ClassWizard appears.
On any of ClassWizard's tabs, click Add Class, then click From a type library.
The Import from Type Library dialog box appears.
Select a type library and click Open.
The Confirm Classes dialog box appears. This dialog box contains a list of classes that ClassWizard can create from information in the type library. The class names are generated by ClassWizard.
Use the Name text box to rename the class that is currently selected from the list.
Use the Header File and Implementation File text boxes to rename the .h and .cpp files, if you choose to. Also, you can use the Browse buttons to rename the files or cause the files to be generated in a different directory.
All classes selected from the class list are added to these two files.
Click OK.
ClassWizard generates the specified class.