Solved

Can't load MSJet

Posted on 1998-03-15
1
208 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
[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
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

Industry Leaders: 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

Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

628 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