Solved

Unable to initialize DAO/Jet db engine

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

726 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