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
vc.codewiz.classes.adding.generic
dev_langs
helpviewer_keywords
Visual C++, classes
generic classes, adding
generic classes
ms.assetid
e95a5a14-dbed-4edc-8551-344fe48613cb
caps.latest.revision
9
author
mikeblome
ms.author
mblome
manager
ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw
Adding a Generic C++ Class
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
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 .
Adding a Class
MFC Class
ATL Simple Object