Solved

Can't load MSJet

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

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

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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

756 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