<
theodo...@gmail.com> wrote in message
news:ac0af0e0-cd70-4b14...@googlegroups.com...
> Anybody have any code (that works under win7) for modifying
> a specified EXE's icon?
This can be done, but...
> Or is there a way to specify an icon during compile time using
> compiler directives?
This is by far the easier option. You can set the icon in the
project options, or if you're really bent on doing it through
compiler directives, include a resource file that has the icon
in it using $R. You may have to remove Delphi's own icon from
then standard resource file using a resource editor, and take
care that it doesn't get reinstated.
Personally, I'd set the icon in the project options.
Groetjes,
Maarten Wiltink