Build statically

Posted on 2001-04-11
Last Modified: 2013-11-14
Problem:  When I build a program in VC++, I always build it statically (so that the needed dll's are included in the exe-file).
But I cannot find how to do that in VB!
How do I build a program in VB with statically linked libraries??
Question by:ToniVR
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
LVL 43

Accepted Solution

TimCottee earned 25 total points
ID: 6002029
You cannot build an executable in VB with the libraries included in the exe file. There are really only a couple of solutions to this.

1) Use the Package & Deployment wizard included with VB to create an installable package; this includes all libraries and ocxs etc into a cab file along with an installer stub executable.
2) Use a third party p&d tool such as installshield to achieve the same result as 1) however these third party tools often have greater functionality.
3) Purchase a third party tool such as Fusion from this will take a vb executable and convert it so that it can be distributed as a standalone (Static) executable.

Hope this helps
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 6002160
As long as you don't use ANY activex or additional components, you can simple copy the vb5.dll / vb6.dll to the application path. As soons as you want to add treeviews or so, you must install the given ocx.

I know there are commercial products that can modify your project so it can be stand-alone...
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 6002162
too slow and instable connection...
sorry timcottee

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

696 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