HelpNeed help

Posts 1–3 of 3 · Page 1 of 1
Need help
Hello im getting this error PInvokeStackImbalance was detected
Message: A call to PInvoke function 'WindowsApplication1!WindowsApplication1.Form1::Ge tAsyncKeyState' 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.



a1680d7a82dc4ef46a86b7827bfb7100.png
Code:
Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Integer) As Boolean
For future note, it is absolutely necessary to correctly reference API calls. Even miss capitalizations can causes problems on runtime.
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?