[fpc-pascal] Dynamic loading shared libraries
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Aug 11 21:25:43 CEST 2009
On 11 Aug 2009, at 21:18, theo wrote:
> Am I right, that with fpc it is only possible to write bindings for
> dynamically loading shared libraries (using LoadLibrary) the hard way?
> Meaning declare function like:
> init_alloc_root : procedure(root: PMEM_ROOT;block_size :
> Cardinal);extdecl; and then using GetProcedureAddress like:
> pointer(init_alloc_root) :=
> GetProcedureAddress(Mysql3_comLibraryHandle,'init_alloc_root');
How would the easy way be?
> Is there a tool for converting sources with static bindings to this?
Not that I know.
> Does h2pas have an option for this?
-p
Jonas
More information about the fpc-pascal
mailing list