ON_COMMAND(ID_RECOVER, OnRecover)的问题,好郁闷哦!
是这样的,
afx_msg BOOL OnRecover ()
BOOL CMainFrame::OnRecover()
{
// TODO: Add your command handler code here
...
}
这样的函数,编译通不过。BOOL OnRecover ()不能改,因为别的版本中这个文件是好的。我这个版本编译报错:
D:\MainFrm.cpp(87) : error C2440: 'type cast' : cannot convert from 'int (__thiscall CMainFrame::*)(void)' to 'void (__thiscall CCmdTarget::*)(void)'
Pointers to members have different representations; cannot cast between them