ACC2: DAO2016.DLL Not Available from External Applications

Last reviewed: June 3, 1997
Article ID: Q115899
The information in this article applies to:
  • Microsoft Access version 2.0

SUMMARY

Advanced: Requires expert coding, interoperability, and multiuser skills.

You cannot call the DAO2016.DLL file from an application written in C to use DAO code to control Microsoft Access tables.

The only application that can call the DAO2016.DLL file is Microsoft Access version 2.0. Trying to call this dynamic-link library (DLL) from any other program will not work and is not supported by Microsoft.

MORE INFORMATION

DAO2016.DLL (the filename refers to Data Access Objects, version 2.0, 16 bit) is the DLL that Microsoft Access uses from Access Basic to modify database objects in the Microsoft Jet database engine.

If you try to use OLE functions from C/C++ to use this DLL, you will receive the error message "VBAJET.DLL not found." This is a misleading error message in that the file VBAJET.DLL does not exist as part of the Microsoft Access installation at all. A more appropriate error message would be "Feature not available."

Using tools such as OLE2VIEW.EXE from Microsoft Visual C++, it is possible to look at some of the objects and methods that are exposed in the DAO2016.DLL file. This is analogous to looking at the entry points to a DLL, except that the information is in a form that is more useful and easier to decode.

While these methods are listed, there is no documented way to call them, and they are not registered in the Microsoft Windows Registration database as OLE Methods that are available for OLE Automation.

Neither Microsoft Access nor the Microsoft Jet database engine are OLE Servers. They cannot be controlled using OLE Automation techniques.


Keywords : GnlOthr kberrmsg PgmApi
Technology : kbole
Version : 2.0
Platform : WINDOWS
Hardware : X86
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 3, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.