Share via


Overview: Creating a Static Library

OverviewHow Do IDetails

A static library is a file containing objects and their functions and data that is linked into your program when the executable file is built. This topic explains how to create the starter files and project settings for a static library. You can link a static library to an MFC-based program or to a non-MFC program for Windows written in C or C++, that makes calls to the Win32 API rather than to MFC classes.

There are two steps to this process. First, you use the Static Library icon to create files and project options. Next, you prepare your library for use by adding the appropriate classes and resources that you want to make available to calls from your program to it.

What do you want to do?