Add a generic C++ class (original) (raw)

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

To add a generic C++ class to a project:

  1. In Class View, right-click the project to which you want to add the new class, choose Add, and then choose Class.
  2. In the Add Class dialog box, in the templates pane, select C++ Class. Select Add to display the generic C++ class wizard.
  3. In the wizard, provide a class name, and then define settings or accept the defaults.
  4. To close the wizard and view the new generic C++ class in the project, select Finish.

In this section

Generic C++ class wizard

Adds a generic C++ class to a project. The class doesn't inherit from ATL or MFC.