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();
//钩子类的钩钩代技术博客 源码构造函数
~Cmousehook();
//钩子类的析构函数
BOOL starthook(HWND hWnd);
//安装钩子函数
BOOL stophook();
// 卸载钩子函数
};
//Cmousehook.cpp
Cmousehook::Cmousehook()
//类构造函数
{
};//分号
Cmousehook::~Cmousehook()
//类析构函数
{
stophook();
};//分号