How To Passing a License Key to Classes Generated by #import (170461)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q170461 SUMMARY This article only applies to ADO version 1.0. With ADO 1.5
and above you do not need a licence key. ADO 1.5 and above are redistributed
with MDAC(Microsoft Data Access Components) package. To get the latest
version of ADO, download latest version of MDAC. To download the latest version of MDAC, visit the following Microsoft Developer Network (MSDN) Web site: The Following Information Applies to ADO 1.0 The #import
directive is used to incorporate information from a type library, but makes no
provision for a license key. If you installed the OLE DB SDK or Internet
Information Server 3.0, then the license key is automatically created in the
registry. However, if your application is redistributed to machines
that have not had either OLE DB SDK or Internet Information Server 3.0
installed on them, you need to programmatically provide the ADO License Key.
This is necessary regardless of the development environment you are using to
manipulate ADO. This article is one of a series dealing with
redistribution of Microsoft Data Access Components (MDAC), including ODBC, OLE
DB, ADO, RDS, the MDAC Standalone, MDAC Redistribution, and the Data Access
SDK. The white paper "Redistributing Microsoft Data Access Components" presents
a comprehensive overview of this subject, including a reference to the content
in this Knowledge Base article. You can find this white paper in the Microsoft
Developer Network at the following location:
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbCompiler kbDatabase kbhowto KB170461 kbAudDeveloper |
---|
|