Click to See Complete Forum and Search --> : Creating A Smaller Program


Shella
December 28th, 1999, 11:26 AM
Hi
How can I create a smaller program in VB without the use of ActiveX Control ? Everytime as I make a setup program for my small VB written executable file, the OCX and DLL files eat up 18MBs, in fact the executable file is just
200 - 300 KB in size, only the included giant-alike ActiveX and DLLs blow up the size, how can I write a smaller program without depending on ActiveX control and DLL Calling, just like some of the internet downloaded programs, they can be run without any pre-installed DLLs and ActiveX Controls but the program interface comes with those ActiveX functionalities, how can I create 1 of that kind ? I wish to have a smaller executable program that can be run without pre-installed OCXs and DLLs.

thanks for ur guidance in advance.

Gary Grant
December 28th, 1999, 12:46 PM
With VB6 you will always have to ship the runtime
(MSVBVM60.DLL - 1,384,448 Bytes) There is no way to get around this. Depending on your target platform you may need OLE32.DLL and OLEAUT32.DLL
(A Win95 installation may not have the latest versions of these two DLL's). For the windows common controls you can You can use the API's and thus cut your reliance on OCX's. This option may not be available for third party controls.

That being said 18 Meg seem a bit much unless you are using many different controls and references.
Check your project's settings and remove from your project any references and or controls that you are not using. As an example, if the Microsoft Active Movie control is checked in your project components settings, this will become part of you distribution even if you do not use it.

As for those ultra small applications that you referenced, many were created with another development tool (VC++ with ATL, MASM, etc.)