Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can't load MSJet

Posted on 1998-03-15
1
Medium Priority
?
215 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 300 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

722 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