Posts 1–5 of 5 · Page 1 of 1
VB.NET Hotkey problem
Trying to add hotkeys to my next release
Code:
Dim F9P As Boolean
Dim F10P As Boolean
F9P = GetAsyncKeyState(Keys.F9)
F10P = GetAsyncKeyState(Keys.F10)
Error:
Code:
PInvokeStackImbalance was detected
Message: A call to PInvoke function 'NinjaStormNSs Crosshair!NinjaStormNSs_Crosshair.Form1::GetAsyncKeyState' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
I already declared GetAsyncKeyState
Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
So?..
Posts 1–5 of 5 · Page 1 of 1