On 26 Jul 2010, at 01:20 PM, Antônio <[email protected]> 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
> [email protected]
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> 
Thank you so much, this is exactly what I needed! :)


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to