[Lazarus] About {$R *.res}...

Bart bartjunk64 at gmail.com
Wed Oct 8 12:01:26 CEST 2008


On 10/8/08, John vd Waeter <john at jvdw.nl> wrote:
>
> Hi All,
>
> To polish my application (WinCE, KOL-CE) I wanted to add an icon to the
> executable.
>
> I was suggested to create a resource-file in Delphi, add a Mainicon to
> it and copy the res-file in my application source dir.
>
> After that, I inserted a {$R *.res} in the .lpr et voila, after
> compiling my app showed a beautiful icon.
>
> But... after quitting and restarting Lazarus and opening my projectfile,
> the IDE outcomments the resource-directive:
>
> {$R *.res} becomes
> //{$R *.res}
>
> It looks like using a resourcefile this way is allowed by the compiler
> (2.2.0) but not allowed by the IDE?
>
> I think you have to specify the filename (not *.res, but
myresourcewithicon.res), at least that works for me here (on win9x).

Bart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20081008/b1b387b7/attachment-0007.html>


More information about the Lazarus mailing list