钩子的问题,请帮忙
LRESULT WINAPI MouseProc(int nCode,WPARAM wparam,LPARAM lparam)
{
.............
}
BOOL Cmousehook::starthook(HWND hWnd)
{
glhHook=SetWindowsHookEx(WH_MOUSE,MouseProc,glhInstance,0); //编译出错
}
错误提示:
error C2664: '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
请问怎么回事,如何解决