Results 1 to 14 of 14

Thread: STrange VB6 Application size (important)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    STrange VB6 Application size (important)

    Hi ,

    i got a strange vb6 application size today
    me and a friend of mine tested a simple code like this

    open vb6 create new project and added that

    Code:
    Private Sub Form_Load()
    MsgBox ("hello vb6")
    End
    End Sub
    For me the size is 16 kb
    but seem my friend got only 6 kb !!!!

    can someone test that and put his size here .

    How come that happen ? cause i really interested to have the same size as he got

    Thanks & much appreciated

  2. #2
    New Member
    Join Date
    Apr 2009
    Posts
    6

    Smile Re: STrange VB6 Application size (important)

    the exe size is 16kb maybe he didnt add some of the code or something other than the code above

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: STrange VB6 Application size (important)

    Quote Originally Posted by DebbieCane View Post
    the exe size is 16kb maybe he didnt add some of the code or something other than the code above
    no is the same m8 me too i didnt get it

    but i compile it and tested the same code via teamviewer
    i have the both 2 file if someone interested to compare or so i can upload them

    Thanks

  4. #4
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: STrange VB6 Application size (important)

    If your sizes are correct, there is obviously something extra in your project. It could be that you are referencing more libraries that your friend (Menu->Project->References), different compile type (Menu->Project->Properties) change compile to P-Code gets me down to 12k. Maybe he removed the icon as well?

  5. #5
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: STrange VB6 Application size (important)

    Did your friend also compile the app, are you using the same version of VB?
    Maybe you should ask your friend to send you a zip of the project so you can compare the .vbp, .frm/.frx files to yours, as needed?
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: STrange VB6 Application size (important)

    Yes it's the same and we did compile it on native-code both
    i did compile it by myself via teamviewer and yes we have the same version 6.0

    i want really to know how can that happen

  7. #7
    Addicted Member reacen's Avatar
    Join Date
    Jul 2009
    Location
    c:\windows\system32\gdi32.dll
    Posts
    243

    Re: STrange VB6 Application size (important)

    I have 16Ko too.
    Can you open the EXE with notepad to check if you find anything like "UPX" ? Maybe hes IDE has a plugin that Compresse the EXE at the end ? (When I use UPX, the EXE size is about 5,9Ko, so the same as your friend )
    DoEvents

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: STrange VB6 Application size (important)

    hmm i dont think so but here you his file maybe someone can find the issue

    it just say hello vb6 and end

    Thanks
    Attached Files Attached Files

  9. #9
    Addicted Member
    Join Date
    Apr 2009
    Location
    Toronto, Ontario
    Posts
    242

    Re: STrange VB6 Application size (important)

    Um, are all of you using the same filesystem? If one of you is using FAT32 and another NTFS, couldn't there be differences like this due to the differences in the Allocation unit?

    FAT can have 16Kb or 32Kb allocation units, so any file smaller than those sizes actually takes up a full allocation unit in the filesystem.
    FAT32 can also be configured with different unit sizes, if I remember correctly,
    and NTFS has a 4Kb unit, I think.

    Maybe this is your issue?

    -EM

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: STrange VB6 Application size (important)

    i use NTFS here...
    maybe but i dont this is the issue
    you can take a look at the file i posted i compile it myself via teamviewer

  11. #11
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: STrange VB6 Application size (important)

    Quote Originally Posted by emartinho View Post
    If one of you is using FAT32 and another NTFS, couldn't there be differences like this due to the differences in the Allocation unit?
    No there is no difference between FAT32 and NTFS. I've just compiled a new project with just 1 Form, no code and no references and and its 16Kb for both systems. WinXP and WinME.

    I've just compiled the same project on VB4 16bit and its 8Kb and the same on VB3 and its 6Kb.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: STrange VB6 Application size (important)

    hmm but he use vb 6.0

  13. #13
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: STrange VB6 Application size (important)

    Quote Originally Posted by killer7k View Post
    hmm but he use vb 6.0
    So am I, I'm just showing the difference between VB3, VB4 16bit and VB6 exe sizes.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  14. #14
    Hyperactive Member
    Join Date
    Aug 2009
    Location
    Anywhere I want to.
    Posts
    408

    Re: STrange VB6 Application size (important)

    What is the disk cluster size of each system where the .exe resides?
    Are any Advanced Optimizations turned on or off?
    Are .frx files the same size?
    Do right-click properties in Windows Explorer to get true file sizes: Size vs Size On Disk.

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