-
March 11th, 2009, 09:27 PM
#1
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?
-
March 11th, 2009, 10:46 PM
#2
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.
-
March 12th, 2009, 09:03 AM
#3
Re: Help Please
How did you declare GetAsyncKeyState()?
-
March 12th, 2009, 11:09 PM
#4
Re: Help Please
Thank u BigEd781.
Please send me the correct syntax of GetAsyncKeyState.
Thank u again 4 replying!!!!
-
March 13th, 2009, 02:35 AM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|