Recent

Author Topic: Loading bmp resources  (Read 7805 times)

dpsoftware

  • Newbie
  • Posts: 4
Loading bmp resources
« on: June 05, 2010, 04:05:05 am »
A small component converted from Delphi uses a resource file to load a bitmap. I used lazres to add the bitmap to a resource file but the project compile fails when I add the following line:

{$R rulertab.lrs}

The errors are:

windres... not found (repeated 12 times)
windres'' not found, switching to external mode

Version #0.9.29
Date: 2010-05-17
FPC version 2.4.0
SVN revision 25472
i386-darwin-carbon (beta)

Hoping someone can help out a new Lazarus user. I tried several times before to use Lazarus for Mac development but this time I have projects running so I hope to stay with it. I am a long time user of Delphi.

Dave Peters
DP Software



theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1890
Re: Loading bmp resources
« Reply #1 on: June 05, 2010, 07:47:57 am »
{$I ...}
See: http://wiki.lazarus.freepascal.org/Lazarus_Resources
Don't forget "uses LResources"

dpsoftware

  • Newbie
  • Posts: 4
Re: Loading bmp resources
« Reply #2 on: June 06, 2010, 07:37:27 am »
Thanks very much - it's working now. I missed the change from $R to $I