Build statically

ToniVR
ToniVR used Ask the Experts™
on
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??
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Head of Software Services
Commented:
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 http://www.bit-arts.com this will take a vb executable and convert it so that it can be distributed as a standalone (Static) executable.

Hope this helps
Guy Hengel [angelIII / a3]Billing Engineer
Most Valuable Expert 2014
Top Expert 2009

Commented:
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...
Guy Hengel [angelIII / a3]Billing Engineer
Most Valuable Expert 2014
Top Expert 2009

Commented:
too slow and instable connection...
sorry timcottee

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial