Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Executable in VB6.0

Posted on 1999-01-20
6
Medium Priority
?
990 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
[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
  • 3
  • 3
6 Comments
 
LVL 12

Accepted Solution

by:
mark2150 earned 300 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…
Suggested Courses

636 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