[fpc-pascal] Dynamic linking variables

L L at z505.com
Sat Oct 27 02:44:08 CEST 2007


> You cannot do this with a single construct; You need a pointer in the case
> of a dynamically loaded library.
> >
> > I'm not sure that I understand. can you please point me to an example ?

He means it depends on whether you are using:

DLL bound dynamically at program runtime
DLL bound statically at program load time

A static DLL is when you use:

procedure blah; external somedll;

Whereas a dynamic DLL is:

LoadLibrary(somedll);
GetProcAddress('blah');

If you are using static binded DLL, then you can use the cvar.. but if using
dynamic binded DLL then you have to figure up a different solution.




More information about the fpc-pascal mailing list