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

x
?
Solved

Visual Basic question

Posted on 1997-09-01
1
Medium Priority
?
214 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 200 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

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.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

721 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