Win32 function vs delegate issues with api

2015-09-08 Thread Prudence via Digitalmars-d-learn
I have hook = SetWindowsHookEx(WH_MOUSE, &Proc, NULL, ThreadID); Proc is the standard hook proc: public extern (Windows) LRESULT Proc(int code, WPARAM wParam, LPARAM lParam) I get a type mismatch because Proc is a delegate and SetWindowsHookEx expects a function. Making proc static works

Re: Win32 function vs delegate issues with api

2015-09-08 Thread Rikki Cattermole via Digitalmars-d-learn
On 09/09/15 12:18 PM, Prudence wrote: I have hook = SetWindowsHookEx(WH_MOUSE, &Proc, NULL, ThreadID); Proc is the standard hook proc: public extern (Windows) LRESULT Proc(int code, WPARAM wParam, LPARAM lParam) I get a type mismatch because Proc is a delegate and SetWindowsHookEx expects a f