Solved

Unable to initialize DAO/Jet db engine

Posted on 1998-03-10
3
1,295 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now