|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Visual Studio 2005
A symbol that indicates you want the registration code for your object to be in the object to avoid a dependency on ATL.DLL.
When you define ATL_STATIC_REGISTRY, you should use the following code:
#ifdef _ATL_STATIC_REGISTRY #include <statreg.h> #endif