[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Unable to initialize DAO/Jet db engine

Posted on 1998-03-10
3
Medium Priority
?
1,332 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 600 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

656 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