Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

Redistributing ATL and OLE DB Templates 

An Active Template Library (ATL) or OLE DB Templates project can be built for a MinDependency or a MinSize configuration.

A MinDependency configuration is what you get when you set the Use of ATL property to Static Link to ATL on the General property page and set the Runtime Library property to Multi-threaded (/MT) on the Code Generation property page (C/C++ folder).

A MinSize configuration is what you get when you set the Use of ATL property to Dynamic Link to ATL and the Minimize CRT Use in ATL to Yes on the General property page, or set the Runtime Library property to Multi-threaded DLL (/MD) on the Code Generation property page (C/C++ folder). See Using _ATL_MIN_CRT in Your ATL Project.

MinSize makes the output file as small as possible but requires that ATL80.dll and Msvcr80.dll (if you selected the Multi-threaded DLL (/MD) option) are on the target computer. ATL80.dll should be registered on the target computer to ensure that all ATL functionality is present. ATL80.dll contains ANSI and Unicode exports.

If you build your ATL or OLE DB Templates project for a MinDependency target, you do not need to install and register ATL80.dll on the target computer, although you might get a larger program image.

If you redistribute an ATL executable application, you must register the .exe file (and any controls inside it) by issuing the following command:

filename /regserver

where filename is the name of the executable file.

For OLE DB Templates applications, ensure that the target computer has the latest versions of Microsoft Data Access Components (MDAC) files. For more information, see Redistributing Database Support Files.

Installation of Localized ATL

If you use an ActiveX control that depends on Msstkprp.dll (typically they will be ATL-based controls) and you want to ship a localized version of the ActiveX control, you can find a localized version of Msstkprp.dll at http://msdn.microsoft.com/vbasic/downloads/ipdk.asp

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.