Add Class Dialog Box
The Add Class dialog box contains templates that allow you to:
- Open a corresponding code wizard, if one is available. For more information, see Adding Functionality with Code Wizards.
- or -
- Automatically create your new class by adding the appropriate files and source code to your project.
You can access the Add Class dialog box from the Project menu, Solution Explorer, or Class View.
Note
When you attempt to add a class that is not suited to your current project, you will receive an error message. Click OK to return to the Add Class dialog box.
Add Class Templates
There are four categories of Add Class templates: .NET, ATL, MFC, and Generic. When you select a template in the Templates pane, text describing your selection will appear under the Categories and Templates panes.
.NET
Template |
Wizard |
---|---|
ASP.NET Web Service |
Not available |
Component Class (.NET) |
Not available |
Installer Class (.NET) |
Not available |
User Control (.NET) |
Not available |
Windows Form (.NET) |
Not available |
ATL
Template |
Wizard |
---|---|
Add ATL Support to MFC |
Not available |
ATL Active Server Page Component |
|
ATL Control |
|
ATL Dialog |
|
ATL COM+ 1.0 Component |
|
ATL OLEDB Consumer |
|
ATL OLEDB Provider |
|
ATL Property Page |
|
ATL Simple Object |
|
WMI Event Provider |
WMI Event Provider Wizard |
WMI Instance Provider |
WMI Instance Provider Wizard |
MFC
Template |
Wizard |
---|---|
MFC Class |
|
MFC Class From ActiveX Control |
|
MFC Class From TypeLib |
|
MFC ODBC Consumer |
Generic Classes
Template |
Wizard |
---|---|
Generic C++ Class |
See Also
Tasks
Reference
Navigating the Class Structure