On 6/19/07, tigersware <[EMAIL PROTECTED]> wrote:
hi all friends, when i write a program , they have resource and anyone can change my program elements by a program like resource hacker . what should i do for having not resource in my programs ? thank you in advance
Simplest solution would be an Exe packer like AsPack. Too bad those aren't difficult to crack. Another solution would be by not using these resources but by creating these resources in your code. At http://GExperts.org there's a Delphi wizard available which can convert components and even forms to code. This would remove them as resources from your application but it will need more code and it will be more difficult to work with. Same is true for icons and bitmaps. You could use all kinds of tricks to make them part of your application. I once even created a small tool (which I lost again) which would convert these bitmaps to assembler code which could be included in my Delphi source. In Delphi I just needed the address of this assembler block to know where I could load these resources. This is also a bit difficult to crack. Actually, it's a trade-off. The cost for rapid development with Delphi is that these resources are exposed. If access to these resources gets more complex then the rapid development will also slow down. So in general just protect those resources that you need to protect. And never keep any secrets unencrypted in a resource. Which provides an alternate option for bitmaps and icons. You could encrypt them before adding them to the resource. When your application needs them, it just needs to decrypt them while it's loading them. Adds a bit more overhead to your code but will protect those resources. Also add a copyright notice to your application. Make sure the user sees it in the help/about box if you have any. Otherwise, add this about box somewhere or put this text in your screen somewhere. It doesn't help against resource hackers who steal your resources but it does improve your legal position as owner of these resources. -- With kind regards, \/\//\ Wim, W.A. ten Brink
