01.03.2015, 20:38
Code:
int AnEventForCallingBack() { int idx; cell ret, amx_Address,*phys_addr; int amxerr = amx_FindPublic(pAMX, "OnMouseWheelScroll", &idx); if (amxerr == AMX_ERR_NONE) { amx_Exec(pAMX, &ret, idx); return 1; } return 0; }
1>c:\users\usuario\documents\visual studio 2010\projects\tbr\tbr\tbr.cpp(35): error C2065: 'pAMX' : undeclared identifier
1>c:\users\usuario\documents\visual studio 2010\projects\tbr\tbr\tbr.cpp(38): error C2065: 'pAMX' : undeclared identifier
I know I must declare pAMX, but I am noob in c ++
Code:
LRESULT CALLBACK MouseHookProc(int nCode, WPARAM wParam, LPARAM lParam) { MSLLHOOKSTRUCT * pMouseStruct = (MSLLHOOKSTRUCT *)lParam; if (wParam == WM_MOUSEWHEEL) { if (HIWORD(pMouseStruct->mouseData) == 120) { AnEventForCallingBack(); } else logprintf("down"); } return CallNextHookEx(0, nCode, wParam, lParam); }