PRB: VB 4.0 EXEs Are Different When Compared Byte-by-Byte
Article ID: 129288
Article Last Modified on 12/9/2003
APPLIES TO
- Microsoft Visual Basic 5.0 Control Creation Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 4.0 Standard Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 16-bit Enterprise Edition
- Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
This article was previously published under Q129288
SYMPTOMS
When making two executables in a row from the same project no matter how
small, the .EXE files will come out with a difference in bytes when using
the FC (File Compare) utility. No two executable files created from the
same Visual Basic source code are identical. While the file sizes may
be the same between two .EXE files, a byte-by-byte comparision reveals that
the actual .EXE files are different.
CAUSE
Many internal identifiers and GUIDs that may be used in the application are
reassigned on every compile. A few of these are written out into the .EXE
file in internal tables. Also, the Win32 file format has an entry in it for
the time stamp of the executable. This will be set to a different value
each time you make a new .EXE file.
STATUS
This behavior is by design.
Additional query words: 4.00 vb4win vb4all
Keywords: kbprb KB129288