Results 1 to 4 of 4

Thread: 2.5 MB?

  1. #1

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Hi, I wrote a really small test program wich connects to an internet site via the Internet Transfer Control.
    Except for Label, Textbox, Imagebox and Command buttons it uses no other controls.

    Will the program still work when I delete the standard components such as treeview, timer, dropdownbox etc. etc.?

    I want to reduce the file size, because it's now a setup dir. from 2.5 MB
    (I DO have to send the whole dir *zipped* in order for other people to run it, right? or do I only have to send setup.exe)

    If anyone can help, I really appriciate it because, 2.5 MB is way too large for such a small program.

    Thanks in advance,
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  2. #2
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    London
    Posts
    290
    I`m suprised by the size of some VB programs i`ve written. Then again, its just that you get a big initial size...you can then add loads of code, forms etc and it doesnt seem to increase the overall size too much.

    Perhaps you have loads of .BMP (graphics) files...not sure if VB understands other, more reasonable formats (such as .JPG)...maybe you can load them through some sort of filter at run-time?

    My whole project, source, graphics, latest executable etc, is currently 31 odd meg, but zips down to less than a floppies worth - a lot of that is the .exe and the .bmps... so you can make savings... VB obviously wasnt designed with speed/size in mind, but its good for rapid developement.

    Alex.

  3. #3
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Go to Project / Components and Project / References and try unticking any ticked boxes - it will let you know if the controls are in use. Remove any you can, then re-run the setup wizard. This should reduce the size of the setup.
    Also, providing the PC you are sending the program to is not from the Dark Ages you can also get away with not having

    StdOle2.tlb
    OleAut32.dll
    OlePro32.dll
    AsycFilt.dll
    Ctl3d32.dll
    ComCat.dll

    included in the setup - remove these from the last step of the wizard - it will moan about these files being required for every VB application but it will still run ok if the destination PC has up to date versions. The main thing that changes these would be IE5 etc - so if you create the setup on a PC that has IE5 you should find most users will also have IE5 and there shouldn't be any problems.

    PS - if the user gets an 'unexpected error; quitting' error message when they run the program they need the updated OLEAUT32.DLL and OLEPRO32.DLL - these are installed when you install IE5 etc etc.

    Hope this helps. (oh yes, and you DO need to send all the files in the setup dir, not just the SETUP.EXE)

    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  4. #4

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986

    Thanks!

    Ok thanks both of you!!

    Jop

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width