The information in this article applies to:
SUMMARYThe Microsoft Active Template Library (ATL) Help article entitled "Setting Up a Static Link to the Registrar Code" says the following: <<<<<<<<<<This causes a series of compiler errors and warnings when you build for "Win32 Release MinSize": Go into Project/Settings and click on the C++ tab. Under "Preprocessor definitions," replace _ATL_DLL with _ATL_STATIC_REGISTRY. If the project was built using the "ATL COM AppWizard," you can also just pick "Win32 Release MinDependency," which already has the correct preprocessor definitions set for statically linking to the Registrar code. MORE INFORMATION
ATL 2.x accesses the system registry through the ATL Registry Component
(Registrar). You can dynamically link to the Registrar but you will have to
distribute Atl.dll with your application. If you don't want to distribute
Atl.dll, you can statically link to the Registrar but this increases the
size of your executable by approximately 5K. The ATL library allows you to
set this option via preprocessor definitions. _ATL_DLL means you want to
dynamically link with the Registrar. _ATL_STATIC_REGISTRY means you want to
statically link with the registrar. Additional query words:
Keywords : kberrmsg kbdocfix kbdocerr kbATL kbATL200 kbATL210 kbDTL kbRegistry kbVC420 kbVC500 kbGrpMFCATL |
Last Reviewed: January 27, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |