Solved

Visual Basic question

Posted on 1997-09-01
1
208 Views
Last Modified: 2013-11-25
We've developed an application which runs and installs fine on our development machine, the problem arises when we try to install on somebody elses machine.  During the setup stage (created by setup-wizard) we recieve several error messages:

Cannot load (or register) custom control GRAPH16.OCX
Cannot load (or register) custom control DAO2516.DLL
Could not read from file MSAJT200.DLL

We have definitely included these during compilation, what would give these kind of errors and how do we go about fixing it?

We are using Visual Basic V4.0
0
Comment
Question by:nikkkmp
1 Comment
 
LVL 1

Accepted Solution

by:
Jedi earned 100 total points
Comment Utility
Been there !

Files needed to perform the registration of a OCX and DLL files are missing in the definition of software dependencies.

If the target computer does not have VB or VC installed the setup program will
fail to register the OCX,DLL files.

I'm sure you can get a complete file from somewhere, but as I view a compare between my old file and my working file these are the changes:

The files missing are: msvcrt.dll and msvcirt.dll

Add two sections somwhere in the file mine are located after
the "[MSVCRT40.DLL]" section as.

[MSVCRT.DLL]
Register=
Dest=$(WinSysPath)
Uses1=
[MSVCIRT.DLL]
Register=
Dest=$(WinSysPath)
Uses1=

Add these files under the "VB Runtime section" as

[VB Runtime 0409-32]
Register=
Dest=$(WinSysPath)
Uses1=VB40032.DLL
Uses2=ven2232.olb
Uses3=olepro32.dll
Uses4=msvcrt20.dll
Uses5=msvcrt40.dll
Uses6=ctl3d32.dll
Uses7=msvcrt.dll
Uses8=msvcirt.dll

But make a backup before, I dont want to destroy your system.
Hope this helps !
//Jedi
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

772 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

10 Experts available now in Live!

Get 1:1 Help Now