Solved

Can't load MSJet

Posted on 1998-03-15
1
193 Views
Last Modified: 2013-11-14
I used the dlllook program from T. Hui, for determining what dlls to include in the InstallShield program.  My program uses DAO, with an  Access 8.0 database.  I included several dll files refering to Jet.  When I install the program on a machine which has Office 97 and Access 8.0 loaded, the program works.  If loaded on a machine which doesn't have Office 97 or Access 8.0, then I get the error message, "Can't load MS Jet".  The only peculiar thing, is I wasn't sure how to indicate a different directory than Windows/System for the dll files.  One of the dll files is in another directory on the working machines (Program Files/VB/DAO350.dll.  I checked the registry on the non-working machines and it was registered in the Windows/System directory.  How can I correct this?  
Can you also guide me on how to indicate the path of the database.  In the original C++ code, the path was hard coded, which I took out.  I want it to run in the program directory, which is where I put the database on install.  But if you run the program from the desktop, it is unable to find the database.  In VB is used app.path.  Is there something similar in C++?  Thanks

Brent
0
Comment
Question by:bknouse
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 total points
ID: 1183508
You can't just copy over the JET and DAO files. You have to install and register them.  The DAO SDK documentation has a whole chapter on properly installing DAO, and InstallShield is very capable of handling a proper DAO installation.

DAO is a subsystem that must be carefully installed, and is not a collection of DLLs that you tote along with you.

You can use argv[0] to find a path to your executable. GetModuleFileName() with NULL as the first parameter will return the same info.

.B keiM

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have 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 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.

706 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

17 Experts available now in Live!

Get 1:1 Help Now