|
-
Nov 14th, 2008, 06:34 AM
#1
Thread Starter
New Member
[RESOLVED] VB 6 Program does not work on an empty computer
Dear Forum,
Two days ago I converted a VB 4 program to VB 6 program in the VB 6 IDE. This program works well on the computer, where I have installed the VB 6 IDE. When I leave the program on a network driver and try to call it from a computer without the VB6 IDE, the following error window will prompt out: "Run-time" error '523': The data binding DLL, 'VB5DB.DLL', could not be loaded."
It seems that the empty computer is lack of some DLLs, which are already included in the VB 6 IDE.
Does anyone has an idea how to integrate the DLLs in that program? Or before man calls the program, he should first install some support VB 6 support packages on an empty computer?
Thanks in advance,
-
Nov 14th, 2008, 06:39 AM
#2
Re: VB 6 Program does not work on an empty computer
Create an installer... there are already several threads regarding this. Try to do a search.
-
Nov 14th, 2008, 08:46 AM
#3
Re: VB 6 Program does not work on an empty computer
You can't just copy a VB (any version) exe from one computer to another. It must be formally installed.
The Package and Deployment Wizard is probably the easiest way to create the required setup and installation package.
-
Nov 14th, 2008, 10:44 AM
#4
Re: VB 6 Program does not work on an empty computer
 Originally Posted by Hack
You can't just copy a VB (any version) exe from one computer to another. It must be formally installed.
The Package and Deployment Wizard is probably the easiest way to create the required setup and installation package.
As long as the Framework exists on the target machine then VB.Net apps can be just copy-pasted.
-
Nov 14th, 2008, 04:00 PM
#5
Lively Member
Re: VB 6 Program does not work on an empty computer
I think you should download Visual Basic run-times from http://www.microsoft.com/downloads/d...displaylang=en[/URL]
This is a small MS made exe file with loads of .dll files necessary for running of VB 6 Programs.
-
Nov 14th, 2008, 04:32 PM
#6
Re: VB 6 Program does not work on an empty computer
Thread Moved
You need to create an installation package so it installs the necessary dependancy files so your program will run.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 17th, 2008, 04:52 AM
#7
Thread Starter
New Member
Re: VB 6 Program does not work on an empty computer
Dear all, it will be difficult for me to create an installer, because the exe file should be run from the network driver by several users. I have a central Access 97 database (file) on the network driver, which will be accessed by that VB 6 program. With an installer the exe file will be installed on each computer, which is not desired. I tried the VB6 Runtime, and it did not work. Finally I copied the "VB5DB.DLL" to "C:\WINDOWS\system32\". Untill now the program works, but I am not sure if this is enough?
-
Nov 17th, 2008, 06:29 AM
#8
Re: VB 6 Program does not work on an empty computer
I have spent years doing something similar - but have always installed the program.
While installing the VB Runtimes and a certain file may be enough in that particular test (so far!), it might not be the same for other computers - as there may be other files your program needs which happen to be installed on that computer already.
Creating an installation package ensures that all of the required files are installed, and that it is done properly (in many cases simply copying the file is not enough).
However, you do not actually need to include your executable file in the installation package, only the DLL's etc it needs. You can then put the executable file (and the database file) on the network drive, and just give the users a shortcut to it.
If you do it that way, it is a good idea to add any extra DLL's that you are likely to need in the future (for example, in my package I added the Common Dialog, even tho the first program didn't use it), so that you don't need to re-install on each computer later.
-
Nov 18th, 2008, 10:21 AM
#9
Thread Starter
New Member
Re: VB 6 Program does not work on an empty computer
Thanks a lot si_the_geek! Just as you suggested, I created an install package without the exe file, then the exe program on the network driver works fine!
Many thanks to others (leinad31, Hack, dee-u, BHCluster and RobDog888) too!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|