VB.NET Hotkey problem
Trying to add hotkeys to my next release
Error:
I already declared GetAsyncKeyState
So?..
Code:
Dim F9P As Boolean
Dim F10P As Boolean
F9P = GetAsyncKeyState(Keys.F9)
F10P = GetAsyncKeyState(Keys.F10)
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


Someone told me you have to change "Integer" to "UInteger" but that never worked. Glad you fixed it though 