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...

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to