Solved

Compiler Options

Posted on 2004-04-02
10
176 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 69

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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…

744 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

15 Experts available now in Live!

Get 1:1 Help Now