
SetWindowHookEx parameter wrong
Hi,
The following call to SetWindowHookEx says that the function call in
parameter number 2 is somehow wrong. Does anyone see what is wrong?
hMsgBoxHook = SetWindowsHookEx(WH_CBT, CBTProc, NULL,
GetCurrentThreadId());
LRESULT CJoDlg::CBTProc(int nCode, WPARAM wParam, LPARAM lParam)
{
...
Quote:
}
'SetWindowsHookExA' : cannot convert parameter 2 from 'long
(int,unsigned int,long)' to 'long (__stdcall *)(int,unsigned int,long)'
None of the functions with this name in scope match the target
type
Thanks,
Will