[Lazarus] Lazarus Resources

Antônio antoniog12345 at gmail.com
Mon Jul 26 14:20:15 CEST 2010


Josh,

You can store a resource file on your exe by compiling a resource from
a file via this tool ( http://lazarusbrasil.org/Resources.zip ) and
adding the line {$R ResName.res}  to your project.

Then you can call the resource by name so:

var
  ResStr :TResourceStream;
begin
  ResStr := TResourceStream.Create(hInstance, ResName, ResType);
  try
    ResStr.SaveToFile(FileName');
  finally
    ResStr.Free;
  end;
end;




More information about the Lazarus mailing list