Share via


Using Visual C++ Add New Item Templates

You can easily add items that are common to Visual C++ projects by using the Add New Item command. When you use the Add New Item command, the Add New Item dialog box appears with a list of item templates, which add the appropriate files to your project.

The following table is an alphabetical list of Visual C++ Add New Item templates.

Template

Description

ASP Page (.asp)

Adds a blank ASP page.

ASP.NET Web Service

Adds an XML Web service created with CLR features.

Bitmap File (.bmp)

Creates a Win32 bitmap file.

C++ File (.cpp)

Creates a C++ source file.

Component Class

Adds a Component Class using CLR features.

Cursor File (.cur)

Creates a Win32 cursor file.

DEF File (.def)

Creates a DLL export definition file.

Discovery File, Dynamic (.vsdisco)

Creates a dynamic discovery file, which is an XML file that contains links to other resources that describe the XML Web service. This file enables clients to find an XML Web service and to determine its functionality.

Discovery File, Static (.disco)

Creates a static discovery file, which is an XML document that contains links to other resources that describe the XML Web service, enables programmatic discovery of an XML Web service.

Frameset (.htm)

Adds an HTML file that hosts multiple HTML pages.

Header File (.h)

Creates a C++ header file.

HTML Page (.htm)

Creates a blank HTML file.

Icon File (.ico)

Creates a Win32 icon file.

Installer Class

Adds a class that inherits from the Installer Class using CLR features.

MIDL File (.idl)

Creates an Interface Definition Language file.

Registration Script (.rgs)

Creates an ATL registration script file.

Resource File (.rc)

Creates a Win32 resource file.

Resource Template File (.rc)

Creates a resource template file.

SQL Script File (.sql)

Creates an SQL script file.

Note   This template is not a Standard Edition feature.

SRF File (.srf)

Creates a server response file.

Style Sheet (.css)

Adds a cascading style sheet used for rich HTML style definitions.

Text File (.txt)

Adds a blank text file.

User Control

Adds a User Control using CLR features.

Windows Form

Adds a Windows Form using CLR features.

XML File (.xml)

Adds a blank XML file.

See Also

Concepts

Adding Functionality with Code Wizards