Solved

Visual Basic question

Posted on 1997-09-01
1
213 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
[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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month6 days, 6 hours left to enroll

627 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