0
我在我的項目中使用了JNative的方法CallWindowProc
,並且出現了相當奇怪的參數錯誤。任何人都可以提出什麼是錯的?CallWindowProc方法參數不匹配
我的代碼:
User32.CallWindowProc(new LONG(hotkey.getPrevWndProc()),
new HWND((int)values[0]),
new UINT((int)values[1]),
new WPARAM((int)values[2]),
new LPARAM((int)values[3])).getValue();
和錯誤消息(CallWindowProc
下劃線):
The method CallWindowProc(LONG, HWND, int, WPARAM, LPARAM) in the type User32 is not applicable for the arguments (LONG, HWND, UINT, WPARAM, LPARAM)
THX的意見:)