How to: Create Class Libraries

To create a class library, use the Class Library template, which is available in the New Project dialog box.


Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Visual Studio Settings.

To create a class library

  1. On the File menu, click New, and then click Project.

    The New Project dialog box appears.

  2. In the Installed Templates section on the left side, click the Visual C++ node. Click the Class Library icon in the list of available templates.

  3. In the Name box, type a unique name for your application.


    You can also specify other project and solution settings in the New Project dialog box.

  4. Click OK.

See Also

Other Resources

Debugging Preparation: Visual C++ Project Types