Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Compiler Options

Posted on 2004-04-02
10
Medium Priority
?
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
10 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 100 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 100 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

618 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