PRB: DataLink Type Library Moved From MSDASC.DLL To OLEDB32.DLL In ADO 2.1 (225132)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
This article was previously published under Q225132 SYMPTOMS
An attempt to #import Msdasc.dll to gain access to the DataLink COM object and OLE DB connection dialog results in the following compiler error in Visual C++:
fatal error C1083: Cannot open type library file:
'C:\Program Files\Common Files\System\OLE DB\msdasc.dll':
Error loading type library/DLL.
The same #import of Msdasc.dll worked properly in ADO 2.0 but does not work in ADO version 2.1.
CAUSE
The type library for the DataLink COM object is no longer in Msdasc.dll. The type library has been moved into Oledb32.dll.
RESOLUTION
Change Msdasc.dll to oledb32.dll in your #import statement.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 8/23/2001 |
---|
Keywords: | kbDatabase kbDSupport kbprb KB225132 |
---|
|