Solved

Unable to initialize DAO/Jet db engine

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

771 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

16 Experts available now in Live!

Get 1:1 Help Now