| title | Adding a Generic C++ Class | Microsoft Docs | |||
|---|---|---|---|---|
| ms.custom | ||||
| ms.date | 11/04/2016 | |||
| ms.reviewer | ||||
| ms.suite | ||||
| ms.technology |
|
|||
| ms.tgt_pltfrm | ||||
| ms.topic | article | |||
| f1_keywords |
|
|||
| dev_langs |
|
|||
| helpviewer_keywords |
|
|||
| ms.assetid | e95a5a14-dbed-4edc-8551-344fe48613cb | |||
| caps.latest.revision | 9 | |||
| author | mikeblome | |||
| ms.author | mblome | |||
| manager | ghogen |
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.
-
In Class View, right-click the project to which you want to add the new class, click Add, and then click Class.
-
In the Add Class dialog box, in the templates pane, click C++ Class. Click Add to display the Generic C++ Class Wizard.
-
In the wizard, provide a class name, and then define settings or accept the defaults.
-
To close the wizard and view the new generic C++ class in the project, click Finish.