ACC2: DAO2016.DLL Not Available from External Applications

ID: Q115899


The information in this article applies to:


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          : kberrmsg GnlOthr 
Version           : 2.0
Platform          : WINDOWS 
Issue type        : kbinfo 

Last Reviewed: April 3, 1999