Compiler Options

When i compile a program on a computer and then moving the exe file and running it on another computer which does not have VB installed on it, i get a run-time error stating that certain dlls are missing or not registered with the system.
How am I suppose to set the options in the VB compiler such that in compiles everything into the exe so that I avoid the above mentioned problem?

Thank you.
Zainal062797Asked:
Who is Participating?
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
You need to distribute at least VB runtime files with your and also all dependencies.

Use the "Package & Deployment Wizard" to help you create an installation kit.
0
 
Arthur_WoodCommented:
you cannot 'compile everything into the exe'.   VB programs REQUIRE the VBRuntime Libraries to be present on the target PC.  This is what is accomplished by using the Package and Distribution Wizard, that comes with VB 6, or another Installation package tool, such as Wise Installer, or InstallShield.

0
 
AzraSoundConnect With a Mentor Commented:
If you are serious about finding a "single" exe solution, there are products out there that will do that, e.g.,:
http://www.smartesolutions.com/solution_detail.tmpl/sku=3130745545274444.html
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Arthur_WoodCommented:
most of those do NOT work effectively, from everything that I have read.

AW
0
 
AzraSoundCommented:
For basic apps, it works fine.  I have used it for several simple apps that were to be autorun from a CD.
0
 
BurbbleCommented:
This (along with other DLLs/OCXs your program uses) must be installed on the computer in order for it to run properly:

Visual Basic 6.0 SP5: Run-Time Redistribution Pack:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=BF9A24F9-B5C5-48F4-8EDD-CDF2D29A79D5

If I remember correctly, these files are pre-installed with Microsoft's operating systems from Windows ME and later. Also keep in mind that the latest official release as of now is Service Pack 5, and if your program is compiled using that version of Visual Basic, you will need to the corresponding runtime files to be installed.

-Burbble
0
 
BurbbleCommented:
Just want to ammend my previous suggestion:

The latest service pack is actually Service Pack 6, strangely it just kind of creeped out after a very half-hearted Beta period.

http://www.microsoft.com/downloads/details.aspx?FamilyID=9ef9bf70-dfe1-42a1-a4c8-39718c7e381d&displaylang=en

-Burbble
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.