首页上一页 1 下一页尾页 1 条记录 1/1页
关于钩子技术
发表在C语言图书答疑
2009-11-09
是否精华
是
否
版块置顶:
是
否
你好,能帮我解释一下这句代码吗? LPMOUSEHOOKSTRUCT pMouseHook = einterpret_cast<LPMOUSEHOOKSTRUCT>(lParam);
提示报错,LPMOUSEHOOKSTRUCT' : illegal use of this type as an expression
einterpret_cast' : undeclared identifier
我是在做鼠标钩子处理程序LRESULT CALLBACK MouseHookProc(int nCode, WPARAM wParam,LPARAM lParam)
{
LPMOUSEHOOKSTRUCT pMouseHook = einterpret_cast<LPMOUSEHOOKSTRUCT>(lParam);
POINT gPt = pMouseHook->pt;//鼠标位置信息。
CallNextHookEx(gHook,nCode,wParam,lParam);//继续呼叫下一个钩子
return 0L;
}中,敬请指教,非常感谢!!!
提示报错,LPMOUSEHOOKSTRUCT' : illegal use of this type as an expression
einterpret_cast' : undeclared identifier
我是在做鼠标钩子处理程序LRESULT CALLBACK MouseHookProc(int nCode, WPARAM wParam,LPARAM lParam)
{
LPMOUSEHOOKSTRUCT pMouseHook = einterpret_cast<LPMOUSEHOOKSTRUCT>(lParam);
POINT gPt = pMouseHook->pt;//鼠标位置信息。
CallNextHookEx(gHook,nCode,wParam,lParam);//继续呼叫下一个钩子
return 0L;
}中,敬请指教,非常感谢!!!