[fpc-pascal] fcl-res: using resource embedded in exe
Reinier Olislagers
reinierolislagers at gmail.com
Mon May 27 11:47:26 CEST 2013
On 27-5-2013 1:04, Paul Ishenin wrote:
> 25.05.13, 20:25, Reinier Olislagers пишет:
>
>> In the code above, I'm loading the resource from the executable.
>> However, Paramstr(0) is not reliable on all platforms.
>> Is there a better way of doing this?
>
> Yes.
>
> Resource := FindResource(HInstance, 'SQLSCRIPT', RT_RCDATA);
Thanks Paul; IIRC Linux barfed on RT_RCDATA; can't/won't test it right
now as FPC trunk is broken...
More information about the fpc-pascal
mailing list