Solved

run time files

Posted on 2002-03-08
5
137 Views
Last Modified: 2010-05-02
is there any advance on the need to ship all the vb runtime files in order to run a simple 16k exe?
0
Comment
Question by:mishbal
[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
5 Comments
 
LVL 18

Expert Comment

by:deighton
ID: 6850048
The simple .exe would become bigger if it included all the VB runtime & components it needed.  And if they were, youe would be duplicating all over the place, wasting hard disk space & memory.

0
 
LVL 51

Accepted Solution

by:
Ryan Chong earned 20 total points
ID: 6850049
It's depends on what controls you're using in your Application bcos some of them may need OCXs to run properly. Basically to run VB generated Application, copy the MSVBVM60.DLL from your System Folder should be ok. Create a Setup Package which available in VB is another solution.
0
 
LVL 4

Expert Comment

by:WolfgangKoenig
ID: 6850096
Ryancys says the right.
You must look in your vb project file what type libs you have included in your project. These type libs are defauls and belonging to all vb !V6.0! projects:
- VBA (msvbvm60.dll)
- VB Type Lib (vb6.olb)
- OLE Type Lib (stole2.tlb)

All other references that are not listed above you must
deploy with your EXE ... OCX, OLBs, TLB, DLLs ...

For a simple vb V6 exe it is enough to copy the VBA (msvbvm60.dll) to the system32 dir of your target system and register the dll with for instance:
regsvr32 D:\WINNT\system32\msvbvm60.dll

In some cases it is needed to deliver also the vb6.olb, when you use object data types in vb.

Other version of vb (like V5.0) need the version msvbvm50.dll of the VBA.

I think there is no need to deliver the OLE type lib , except you will install on WIN95 or systems that don't have the ms iexplorer have installed...

;)
WoK






0
 
LVL 18

Expert Comment

by:deighton
ID: 6850639
I've just been told that vb.net has no run time library
0
 
LVL 39

Expert Comment

by:abel
ID: 6851746
> I've just been told that vb.net has no run time library
You're told correctly

> OLE Type Lib (stole2.tlb)
You should not need to ship that. A type library is only a help for the compiler on where to find certain object/methods/functions.

> you must deploy with your EXE ... OCX, OLBs, TLB, DLLs ...
If you want to do it by hand, you should not include OLB's, which is, like a TLB just a type library, yet specific for objects. See Q249843 on MSDN if your VB P&Depl. wizard includes OLB files.

> In some cases it is needed to deliver also the vb6.olb
Same story. If you really think your project doesn't because of a missing library, you can use a library viewer (comes with Visual Studio in the name OLE View)

> when you use object data types in vb.
You *always* use object data types, you cannot do without them, if if you try.

>I think there is no need to deliver the OLE type lib
Indeed, and it doesn't matter if you have MSIE or not.

And about your question: the advances are as deighton pointed out. And if you want it differently: vb.net or any other compiler that compiles independent executables. Independent? Well, as far as that goes on Windows, because you almost *always* call into libraries of Windows.

Regards,
Abel
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…

733 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