Select the product you need help with
PRB: DataLink Type Library Moved From MSDASC.DLL To OLEDB32.DLL In ADO 2.1Article ID: 225132 - View products that this article applies to. This article was previously published under Q225132 On This PageSYMPTOMS
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.
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.
MORE INFORMATIONSteps to Reproduce BehaviorThe following code sample demonstrates how to use the DataLink COM object in Visual C++ using the #import directive.
NOTE: ADO 2.1 is available with MDAC 2.1, whereas ADO 2.0 is shipped with MDAC 2.0. PropertiesArticle ID: 225132 - Last Review: August 23, 2001 - Revision: 1.0 APPLIES TO
|



Back to the top








