-
Help Please
A call to PInvoke function 'keys!keys.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 get the above error message when I run my program.What does this mean?
-
Re: Help Please
It sounds like you are using PInvoke to call a function, but you have not declared it correctly. The signatures do not match. For example, if you were trying to call a function
but you declared it as
Code:
private static extern void Foo(byte* i);
that would cause an error, because you have declared the function incorrectly.
-
Re: Help Please
How did you declare GetAsyncKeyState()?
-
Re: Help Please
Thank u BigEd781.
Please send me the correct syntax of GetAsyncKeyState.
Thank u again 4 replying!!!!
-
Re: Help Please