Solved

Unable to initialize DAO/Jet db engine

Posted on 1998-03-10
3
1,302 Views
Last Modified: 2008-02-01
I created an application that uses a MS access file (*.mdb). I'm using CDaoRecordset classes to access the database. My program runs on the computer that I use to create it, but when I use the software in another computer it gives me the following error when trying to open the recordset:

" Unable to initialize DAO/Jet db engine"

It seems that I need some kind of driver or DLL but I can't figure it out.

Are there any DLL files that I need to include, or do I have to install some drivers.
0
Comment
Question by:santamaria
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 150 total points
ID: 1183326
The most likely suspect is the DAO dll has not been installed or not registered. Check to make sure DAO350.DLL is on the system and that it has been registered using

  regsvr32 dao350.dll

on the command line.


0
 

Author Comment

by:santamaria
ID: 1183327
I tried it, but it didn't work. Do you have any other idea?

By the way, I tried running my program in another computer that has VC++ 5.0 and it ran. Also both computers have MS access installed, but the ones in which it won't work don't have MS access. I'm almost certain that it has something to do with the dll's and registration. Are there any other dlls that have to be installed and registered?
0
 

Author Comment

by:santamaria
ID: 1183328
Thui, I found the problem. It's a bug with MFC42.dll. I found it in MS knowledge base. If you created your program with VC++ 5.0 and are linking MFC42.dll dynamically you will get this error if the MFC42.dll version in the computer is 4.270... or older. So I copied the dll in my machine to the others and it worked just fine.
By the way, one of the machines didn't work, but after I used your suggested answer it did. Thanks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Setting nameservers after res_init fails doing res_query 2 109
Error C2678: binary '!=': no operator found... 4 58
Outlook 13 41
Need some help with mailto 16 20
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question