On 01/17/2014 01:25 PM, Marcos Douglas wrote:
is better not use global variables in the DLL.
Of course I agree.

A reason for using global variables in a DLL might be to access that value as well in the DLL as in the main program.

Is this even possible ?

(To allow for this loading the DLL would need to modify the variable's address anywhere within the DLL code. Up til now I only know about the the "jump table interface" that allows the main code to call DLL functions. )

-Michael

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

Reply via email to