Solved

What files do i need to run programs made in VB6?

Posted on 2004-09-25
10
261 Views
Last Modified: 2010-04-17
I made program and sent it to someone else, and they sent it back telling me that they could not run it because of a missing file, but they weren't specific.  I am pretty sure i read somewhere that you need some kind of "runtime files" to run programs in VB, if it was not installed on the computer already.   could anyone tell me what is needed?   thanks.

--and i can't really test on my compouter cuz it does run here.
thanks
0
Comment
Question by:djiangr
10 Comments
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 12150892
Basically, all DLLs/OCXs using in your application are needed, in order to make your application to run without any problem.

For minimum requirements, which Not depends on other DLL/OCX, it needs MSVBVM60.DLL (Visual Basic 6.0 Run Times DLL) for VB 6 Compiled EXE, or MSVBVM50.DLL for VB5 Compiled EXE, and so on..
0
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 12150906
You can always install the VB Runtime Files in order to make your VB Compiled EXE to run in a pc.

You can download the VB Runtime Files at:
http://msdn.microsoft.com/vbasic/previous/2002/downloads/default.aspx
0
 
LVL 5

Expert Comment

by:tzxie2000
ID: 12151035
if you have studio you can make an setup disk to install the program easily for your customer
0
 

Author Comment

by:djiangr
ID: 12151188
i installed the runtime files (i have a computer now that does NOT run the program, so i am using it to test what to get)
and it still doesn't work.

Run Time Error 339:
Component "COMDLG32.OCX" or one of its dependencies is not correctly registered: a file is missing or invalid."
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:djiangr
ID: 12151224
i found the file on the internet and downloaded it, and then typed something into Start=>Run to register it.
but this seems to complicated to tell the people i need to give the program to, so how come the visual basic runtime files don't do this automatically?  and how can i do this automatically?
0
 
LVL 1

Expert Comment

by:sowyn
ID: 12154363
Go to the Run item on the Start menu, and type:
regsvr32 <path & filename of dll or ocx>
0
 
LVL 2

Accepted Solution

by:
gimmeadrink earned 50 total points
ID: 12154836
I highly reccomend using 'Package & Deployment Wizard' which comes with visual studio.

Firstly, its soo much easier than stuffing around with regsvr
Secondly, COMDLG32.OCX ,might just be the first of many ocxs/dlls/whatever that u need to isntall.... the packager saves all the hassle.

hope this helps
0
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 12155283
Always try to not using/ depending on ocx if possible, despite it's more easier to use and understand. Alternatively you can try replace the Common Dialog Component with pure APIs.

Example:
http://www.freevbcode.com/ShowCode.Asp?ID=631

'Package & Deployment Wizard' (PWD) is good for handling and creating an installer for VB compiled exe, alternatively you can also try this great free, more functionality to PDW and easy to use Install Packager, which is among the best for open source installer packager:

Inno Setup
http://www.innosetup.com
http://www.jrsoftware.org/isinfo.php
0
 
LVL 1

Expert Comment

by:Sibish
ID: 12168139
Hi,
   To run a VB application, you need to register some dll's and ocx's. Actually these dll's may the controls you are using in a your form. The easiet way to solve the problem is to create a Package using the Package and Deployment Tool (Microsoft Visual Studio 6.0->Microsoft Visual Studio 6.0->Package and Deployment Wizard). Anyway you can also solve the problem either manually registering it using
regsvr32 "path" or doing it from your application itself. The code to register from application is

Shell(regsvr32 comdlg32.ocx /s)

Actually in this case the comdlg32.ocx should be in the same path as that of your application. Else you need to give the complete path. /s is used to suppress the message while registering the dll.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Installed softare without GUID 6 66
HP Pavilion Touchsmart 23 hard drive 2 43
Tviruailstringtree sort multi columns on header click 1 54
control image tags in a string ? 12 111
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

863 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

20 Experts available now in Live!

Get 1:1 Help Now