Solved

Can't load MSJet

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
One of the frequent problems with the installations is when some file or registry entry is not removed from the system upon un-installation of the product. Clean removal is always highly desirable. One major reason for that is badly authored inst…
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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

832 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