FIX: "Unable to initialize DAO/Jet db engine" Error (168004)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2b
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2b
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q168004 SYMPTOMS
When you run a Visual C++ version 4.2 or 4.2b application on a machine that
has the 4.21.7022 version of the MFC DLL (MFC42.DLL), the following message
appears when you try to use MFC DAO classes:
Unable to initialize DAO/Jet db engine
CAUSE
Version 4.21.7022 of the MFC DLL (MFC42.DLL), which comes with Visual C++
5.0, always incorrectly tries to use DAO 3.5. Visual C++ 4.2 applications
use DAO 3.0 and, therefore, DAO 3.0 is installed rather than DAO 3.5. When
MFC tries to load DAO 3.5 and it is not there, the error message shown
above appears.
RESOLUTION
Visual C++ applications that are statically linked with MFC do not use the
MFC42.DLL and do not see the problem. Also, the MFC DLL (MFC42.DLL) that
comes with Visual C++ 4.2 can be placed in the directory of the application
so that it is used, rather than the newer MFC DLL.
It is possible to fix the problem by installing DAO 3.5 on the machine as
well. However, keep in mind that this means you will be using a new Jet
database engine, which may introduce new problems with the application that
was tested using DAO 3.0.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been corrected in Visual
Studio 97 Service Pack 1.
For additional information about the Visual Studio 97 Service Pack 1,
please see the following article in the Microsoft Knowledge Base:
170365
INFO: Visual Studio 97 Service Packs - What, Where, and Why
Modification Type: | Major | Last Reviewed: | 12/8/2003 |
---|
Keywords: | kbbug kbDatabase kberrmsg kbfix kbVS97sp1fix kbVS97sp2fix KB168004 |
---|
|