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

前端 未结 4 611
梦如初夏
梦如初夏 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 17:52

    Try using the folowing mouse_event signeture. Note uint instead of long.

    static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint dwData,  int dwExtraInfo);
    

提交回复
热议问题