Link to home
Start Free TrialLog in
Avatar of novowi
novowi

asked on

How to use the GetKeyState function.

Hi,

I am in dispair. I have tried to use the GetKeyState function but it gives me the error 'Actual parameter not matching formal var parameter. Here an fragment of my code:


var
KeyStateBuf:TByteArray;
pKeyStateBuf:PByte;


begin

pKeyStateBuf:=addr(KeyStateBuf);
GetKeyStateBuf(pKeyStateBuf);

end.

This doesn't work and I don't know why. Could anybody give me a solution for that terrific problem, please !!

Thanks a lot.

Oli
ASKER CERTIFIED SOLUTION
Avatar of mirek071497
mirek071497

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial