Solved

Executable in VB6.0

Posted on 1999-01-20
6
981 Views
Last Modified: 2013-12-25
I was using VB6.0 and trying to make an executable file that  can work in the computers that does not have VB-6.0 installed, but somehow it kept prompting the message that there's a *.dll file missing even after I copied these *.dll files into the same directory.
Can anyone help me on this? Thanks a lot.
0
Comment
Question by:neural
  • 3
  • 3
6 Comments
 
LVL 12

Accepted Solution

by:
mark2150 earned 100 total points
ID: 1489801
You need to be using the setup wizard to install your software instead of just copying the .EXE and assorted .DLL's. Simply copying the .DLL's is *NOT* sufficient. You also have to register them into the registry. You can do it manually with RegSvr32 or you can do it automatically using the setup package generated by the setup wizard. Once the software has been installed the first time you can update just by copying the .EXE as long as you haven't added an OCX or new .DLL to the project.

Use the tools provided instead of trying to "roll your own" and your life will become *MUCH* simpler.

M

0
 

Author Comment

by:neural
ID: 1489802
sorry, mare2150, my writting is too lousy. I think you get confused. Actually, I had written a VB program and runs fine on the machine that has Vb6.0 installed. Now the thing I am trying to do is, make the program I wrote can be executed on other computers which without Vb6.0 installed. But I failed on this, can you help me on this one?
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1489803
Like I said. Use the SETUP WIZARD to create an installer. It runs on your development system because all of the .OCX's and .DLL's are already registered. When you use the setup wizard to create the installation package it will place all of the files that your application needs (including .OCX's and .DLL's) into one place along with a customized SETUP.EXE and SETUP.LST. Copy *ALL* of this to the target system and run SETUP.EXE to install. The setup program will install your software just like any other windows applications. It'll put your programs into C:\Program Files\{yourprog}, it'll copy the various .DLL's into C:\WINDOWS and/or C:\WINDOWS\SYSTEM and it'll even add your programs icon to the [Start]/Programs list.

When the SETUP WIZARD runs you'll have several options as to if you want to create a "single directory" or "Multiple Disk" installer. If you choose "single directory" all of the setup and configuration files will be placed into a single directory where you can use PKZIP to generate a "single file" distribution package. Conversely, you can tell it to create multiple directories, one for each diskette. In this mode the wizard will split up your software and installation utilities so that you can copy it to individual floppies. The DISK1 directory will contain the SETUP.EXE program that is used to install your software.

This is the *correct* way to build a distribution setup. Attempting to copy the .EXE and the various .DLL's/OCX's will *NOT* work as you have found out - remember - VB is a *WINDOWS* program, *NOT* DOS!

If you want to see some examples of both methods of distribution (single file and multiple diskette), visit my web page: www.cyberchute.com/rvbus/madmark and you can download several programs I've written and set up using the SETUP WIZARD.

M


M
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:neural
ID: 1489804
Thank you, mark2150.
0
 

Author Comment

by:neural
ID: 1489805
Mark, where can I get this "Setup Wizard" you mentioned? It seemed one of the *.dll file is already in Windows95, but the one needed by VB6.0 is a newer version.
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1489806
It's part of the VB kit. Look around on the menu.

M

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 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…

813 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

9 Experts available now in Live!

Get 1:1 Help Now