“A call to a PInvoke function has unbalanced the stack”

前端 未结 4 616
梦如初夏
梦如初夏 2020-12-11 17:12

I created a Form application in visual c#, that uses a function to generate mouse click, but i got the following error message:

A call to PInvoke function \'         


        
4条回答
  •  感动是毒
    2020-12-11 18:01

    In my case:

    [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.Winapi)]
    public static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);
    

    did the trick.

提交回复
热议问题