Reputation: 41
Using Delphi 2007. I am adding 2 extra icons to my app to use for some custom file associations. Using custom resource files and that is working correctly. However when looking at the resultant exe files I found some extra icons and I do not know where they coming from.
The result is my icons are becoming icons 5 and 6 instead of 1 and 2. Result is that when adding the custom file associations my DefaultIcon registry entry must use 5 and 6 instead of what I expected.
My concern is that since I don't understand where those icons are coming from I may cause myself problems in the future.
Any ideas where to look for them?
Upvotes: 2
Views: 450
Reputation:
To add to what Bruce said, ResHacker is also a free tool to view the resources of your exe.
Also, Im not sure if this would work but could you store the icons you want in a resource dll, and extract/use them when you need to?
Upvotes: 1
Reputation: 15334
Delphi adds a single icon to your exe (default or user specified).
If you are seeing more icons in your application, then they are either:
You can look at and edit the contents of your .res file using any resource editor. Two good examples are applications from Anders Melander and Colin Wilson.
UPDATE:
Since Luke didn't find another .rc file and his .res file is correct, here are a couple of other things I would try:
Upvotes: 3