chpicker
Programmer
- Apr 10, 2001
- 1,316
Wow...
I remembered seeing something awhile back about deleting all PRG files and hacking your SCX, VCX, FRX, etc. files to remove the source code from them when building your final EXE file. This is because the uncompiled source code gets included in the EXE file if you don't do this, which is a nasty security loophole if I ever saw one.
I finished my project tonight, so I decided to give it a try. After making a backup copy, I opened up all of my forms, etc. and BLANKed the Methods field in all records. I deleted all PRG files. I stripped the print driver info from my reports.
My final EXE file was less than 1/4 its original size! 802k reduced to 190k! I still need to test it thoroughly to make sure it is still fully functional, but wow.
So, why am I posting this, you ask? Well, there doesn't seem to be an FAQ about this, and I was wondering if anyone with more experience than me would be willing to write one. This procedure is a TREMENDOUS help even if it's not really a Frequently Asked Question. I would post one if I thought I could do so without forgetting anything. However, I don't think I know all the parts to this.
Any takers?
Ian
I remembered seeing something awhile back about deleting all PRG files and hacking your SCX, VCX, FRX, etc. files to remove the source code from them when building your final EXE file. This is because the uncompiled source code gets included in the EXE file if you don't do this, which is a nasty security loophole if I ever saw one.
I finished my project tonight, so I decided to give it a try. After making a backup copy, I opened up all of my forms, etc. and BLANKed the Methods field in all records. I deleted all PRG files. I stripped the print driver info from my reports.
My final EXE file was less than 1/4 its original size! 802k reduced to 190k! I still need to test it thoroughly to make sure it is still fully functional, but wow.
So, why am I posting this, you ask? Well, there doesn't seem to be an FAQ about this, and I was wondering if anyone with more experience than me would be willing to write one. This procedure is a TREMENDOUS help even if it's not really a Frequently Asked Question. I would post one if I thought I could do so without forgetting anything. However, I don't think I know all the parts to this.
Any takers?
Ian