Udostępnij za pośrednictwem


Adding a Generic C++ Class

A generic C++ class is a class that you define or that is derived from a class that you define. You can add a generic C++ class from Class View.

To add a generic C++ class to your project

  1. From Class View, right-click the project name where you want to add the new class.

  2. From the shortcut menu, click Add, and then click Add Class.

  3. In the Add Class dialog box, click Generic C++ Class in the Templates pane. Click Open to display the Generic C++ Class Wizard.

  4. Define your settings in the Generic C++ Class Wizard. You must provide at least a class name.

  5. Click Finish to close the wizard and view the new generic C++ class in your project.

See Also

Tasks

Adding an MFC Class

Adding an ATL Simple Object

Concepts

Adding a Class