编译出错!!
有一段代码如下:BEGIN_MESSAGE_MAP(CExample2_ChatRoomDlg, CDialog)
//{{AFX_MSG_MAP(CExample2_ChatRoomDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_EN_UPDATE(IDC_INPUTTEXT,OnInputText)
ON_BN_CLICKED(IDC_CONNECTSERVER, OnConnectserver)
ON_BN_CLICKED(IDC_SETSERVER, OnSetserver)
ON_BN_CLICKED(IDC_SOUND, OnSound)
ON_BN_CLICKED(IDC_NEWSEND, OnNewsend)
ON_MESSAGE(MM_WIM_DATA,WriteBufferFull)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
编译出错了,
错误 1 error C2440: “static_cast”: 无法从“void (__thiscall CExample2_ChatRoomDlg::* )(LPARAM,WPARAM)”转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)”
请问怎么解决?