Recent

Author Topic: About {$R *.res}...  (Read 4455 times)

JohnvdWaeter

  • Full Member
  • ***
  • Posts: 168
    • http://www.jvdw.nl
About {$R *.res}...
« on: October 03, 2008, 09:56:27 pm »
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 project-file, the IDE outcomments the resourcce-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?

tnx,
John

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
RE: About {$R *.res}...
« Reply #1 on: October 07, 2008, 01:06:58 am »
I would suggest that you ask this in the lazarus mailling list.