Solved

Visual Basic question

Posted on 1997-09-01
1
209 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
ID: 1433278
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

914 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

13 Experts available now in Live!

Get 1:1 Help Now