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?
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"
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 )
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.
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.
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.
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.