以下是部分代码
class thisDetour
{
public:
bool ( * Target_CI_HYGameMapData__Load)(int, int, int, int);//函数指针,后面会用::GetProcAddress(hm,MAKEINTRESOURCE(8197)); 来赋值
virtual bool Detour_CI_HYGameMapData__Load(int, int, int, int);//自己写的函数};在DLL的入口加入代码: DetourAttach(&(PVOID&)MapDetour.Target_CI_HYGameMapData__Load,MapDetour.Detour_CI_HYGameMapData__Load);
结果通不过编译了,以下是错误:
1>.\测试.cpp(119) : error C3867: 'thisDetour::Detour_CI_HYGameMapData__Load': function call missing argument list; use '&thisDetour::Detour_CI_HYGameMapData__Load' to create a pointer to member请问,这是什么原因造成的?应该如何修改?
class thisDetour
{
public:
bool ( * Target_CI_HYGameMapData__Load)(int, int, int, int);//函数指针,后面会用::GetProcAddress(hm,MAKEINTRESOURCE(8197)); 来赋值
virtual bool Detour_CI_HYGameMapData__Load(int, int, int, int);//自己写的函数};在DLL的入口加入代码: DetourAttach(&(PVOID&)MapDetour.Target_CI_HYGameMapData__Load,MapDetour.Detour_CI_HYGameMapData__Load);
结果通不过编译了,以下是错误:
1>.\测试.cpp(119) : error C3867: 'thisDetour::Detour_CI_HYGameMapData__Load': function call missing argument list; use '&thisDetour::Detour_CI_HYGameMapData__Load' to create a pointer to member请问,这是什么原因造成的?应该如何修改?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货