1.下面代码有错误码? error C2533: 'Cmousehook::Cmousehook' : constructors not allowed a return type
下面代码有错误码? error C2533: 'Cmousehook::Cmousehook' : constructors not allowed a return type
//Cmousehook.h
class AFX_EXT_CLASS Cmousehook:public CObject
{
public:
Cmousehook();
//钩子类的钩钩代ichat源码构造函数
~Cmousehook();
//钩子类的析构函数
BOOL starthook(HWND hWnd);
//安装钩子函数
BOOL stophook();
// 卸载钩子函数
};
//Cmousehook.cpp
Cmousehook::Cmousehook()
//类构造函数
{
};//分号
Cmousehook::~Cmousehook()
//类析构函数
{
stophook();
};//分号
2025-01-04 07:13
2025-01-04 06:58
2025-01-04 06:44
2025-01-04 06:00
2025-01-04 05:51
2025-01-04 05:44
2025-01-04 05:31
2025-01-04 04:49