if (hinstance=LoadLibrary((LPCTSTR)"mousehook.dll"))
{
installbhook=(pINSTALLHOOK)GetProcAddress(hinstance,"installHook");
installbhook();
}
调试报错:
f:\projects\hook\hook\hook.cpp(151) : error C2059: syntax error : 'if'
f:\projects\hook\hook\hook.cpp(152) : error C2143: syntax error : missing ';' before '{'
f:\projects\hook\hook\hook.cpp(152) : error C2447: '{' : missing function header (old-style formal list?)
小弟我怎么改也不行,还望大虾们指教!
{
installbhook=(pINSTALLHOOK)GetProcAddress(hinstance,"installHook");
installbhook();
}
调试报错:
f:\projects\hook\hook\hook.cpp(151) : error C2059: syntax error : 'if'
f:\projects\hook\hook\hook.cpp(152) : error C2143: syntax error : missing ';' before '{'
f:\projects\hook\hook\hook.cpp(152) : error C2447: '{' : missing function header (old-style formal list?)
小弟我怎么改也不行,还望大虾们指教!
return FALSE;
这是vc++2005自动生成的代码,为什么没错呢?非说我的if语法错误,真是郁闷啊