Results 1 to 3 of 3

Thread: Writing to .exe

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    9

    Question

    Hey everyone,
    Does anyone know any tips to save space when I am writing my program to an .exe file. I want to make the .exe as small as possible so it can run faster and fit on one disk. Does the amount of spaces between lines of code matter? Any other ideas?

    Thanks in advance,
    Justin

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Lines and Spaces (White Space), Comments, etc are all ignored by the compiler. The length of variable names makes no Difference either.

    You can turn on the optimisation for samll code in the "Project Properties" :> "Compile" tab.

    Other than that it is reducing the amount of code you have. If you have a lot of code that is the same, or very similar, then consider writing a sub or function that will replace the code.

    If you have an icons in your program, they all go in the exe as well. Use as few as possible. Convert any embedded BMP's, into Jpeg's, or GIF's.

    And Good luck.
    Iain, thats with an i by the way!

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    9
    Thanks alot I'll give it a little work!

    Justin

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