[Lazarus] Lazarus Resources

Josh Lee frozen-dragon96 at hotmail.com
Mon Jul 26 20:58:54 CEST 2010



On 26 Jul 2010, at 01:20 PM, Antônio <antoniog12345 at gmail.com> wrote:

> 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;
> 
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> 
Thank you so much, this is exactly what I needed! :)





More information about the Lazarus mailing list