I was pretty confident that this wouldn't happen, but decided to test to be sure.
When it
did happen, I was really surprised.
I created a project, remove the default form, and added a module with
Code:
Public Sub Main()
Msgbox "I am running . . ."
End
End Sub
in it.
I compiled it, and it became a 16Kb (16,384-byte) .EXE.
I added a module with 88 lines of type declarations. I recompiled, and the .EXE size was unchanged.
Then I added a module with 67 lines of API declarations. Recompiled, and the size swelled to 20,480 bytes.
None of these APIs are used. Why does adding API declarations change the .EXE size?
It seems that their presence ought to only add them to IntelliSense (strictly an IDE issue), and provide necessary info for the compilation process to include them, [u]when they are utilized in the execution process</u>.
What gives?