SteveG wrote:
Vincent Snijders wrote:
SteveG schreef:
Just a note on the GetKeyState function from LclIntf - causes
exception when used within a dll (mine anyway) -
same call direct (thru 'use Windows') works ok
Not sure as yet to report this as a bug, still doing eliminations in
my own code
Do you use the interfaces unit in your dll? Otherwise you cannot use
LCL units.
Note that using the interfaces unit in the DLL gets you into
different problems, because the global variables from the LCL are not
shared between the DLL and the main program.
Vincent
Not using Interfaces currently (didnt know I needed it) - do I place
it in the main unit only, or within each unit that 'uses' an Lcl 'uses' ?
Dont know if its relevant, but I use cmem within my App and Dll (seems
to be the only way to get them to work)
How would I determine which functions are affected by the 'globals'
problem - will it just not work, or give exceptions ?
I currently use a shared memory block between my app and dll (still
looking for a x-platform for that) - is there a 'simple'ish way to
make use of this to circumvent Lcl problems in the dll ?
Just tested with Interfaces in main unit, - fixes GetKeyState within
DLL - Thanks Vincent :)
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives