返回信息流有如下代码:
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
ON_COMMAND_RANGE(IDC_NUMBER1,IDC_NUMBER10,OnNumberKey)
ON_COMMAND_RANGE(IDC_NUMBER11,IDC_NUMBER20,OnOperationKey)
END_MESSAGE_MAP()
编译时报错:
F:\Calculator\CalculatorDlg.cpp(175) : error C2065: 'OnNumberKey' : undeclared identifier
F:\Calculator\CalculatorDlg.cpp(175) : error C2440: 'type cast' : cannot convert from 'int *' to 'void (__thiscall CCmdTarget::*)(unsigned int)'
There is no context in which this conversion is possible
注:OnNumberKey(UINT nID)定义在一个类内部
这是一条镜像帖。来源:北邮人论坛 / cpp / #30040同步于 2009/10/18
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
求助:关于mfc消息映射的问题
moxing
2009/10/18镜像同步1 回复
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复