ATL Program or Control Source and Header Files

The following files are created when you create an ATL project in Visual Studio, depending on the options you select for the project you create.

All of these files are located in the Projname directory, and in either the Header Files (.h files) folder or Source Files (.cpp files) folder in Solution Explorer.

File name

Description

Projname.h

The main include file containing the C++ interface definitions and GUID declarations of the items defined in ATLSample.idl. It is regenerated by MIDL during compilation.

Projname.cpp

The main program source file. It contains the implementation of your DLL's exports for an in-process server and the implementation of WinMain for a local server. For a service, this additionally implements all the service management functions.

Resource.h

The header file for the resource file.

StdAfx.cpp

Includes the files StdAfx.h and Atlimpl.cpp.

StdAfx.h

Includes the ATL header files.

See Also

Reference

MFC Program or Control Source and Header Files

Files Created for CLR Projects

Concepts

File Types Created for Visual C++ Projects