Solved

Compiler Options

Posted on 2004-04-02
10
180 Views
Last Modified: 2013-11-14
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.
0
Comment
Question by:Zainal062797
  • 2
  • 2
  • 2
  • +1
10 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 25 total points
ID: 10742736
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
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 10742837
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
 
LVL 28

Assisted Solution

by:AzraSound
AzraSound earned 25 total points
ID: 10743885
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
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.

 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 10744955
most of those do NOT work effectively, from everything that I have read.

AW
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 10744964
For basic apps, it works fine.  I have used it for several simple apps that were to be autorun from a CD.
0
 
LVL 7

Expert Comment

by:Burbble
ID: 10746153
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
 
LVL 7

Expert Comment

by:Burbble
ID: 11258447
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

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

856 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