添加WM_COMM_RXCHAR 消息映射
在SerialPortTest.cpp中添加WM_COMM_RXCHAR消息映射BEGIN_MESSAGE_MAP(CSerialPortTestDlg,CDialog)...
在SerialPortTest.cpp中添加WM_COMM_RXCHAR 消息映射
BEGIN_MESSAGE_MAP(CSerialPortTestDlg,CDialog)
//{{AFX_MSG_MAP(CSerialPortTestDlg)
ON_MESSAGE(WM_COMM_RXCHAR,OnComm)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
出错:error C2440: 'type cast' : cannot convert from 'long (__cdecl *)(unsigned int,long)' to 'long (__thiscall CWnd::*)(unsigned int,long)'
There is no context in which this conversion is possible 展开
BEGIN_MESSAGE_MAP(CSerialPortTestDlg,CDialog)
//{{AFX_MSG_MAP(CSerialPortTestDlg)
ON_MESSAGE(WM_COMM_RXCHAR,OnComm)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
出错:error C2440: 'type cast' : cannot convert from 'long (__cdecl *)(unsigned int,long)' to 'long (__thiscall CWnd::*)(unsigned int,long)'
There is no context in which this conversion is possible 展开
1个回答
Storm代理
2023-07-25 广告
2023-07-25 广告
StormProxies是一家国内优质海外HTTP代理商,拥有一个庞大的IP资源池,覆盖200多个地区,IP数量大且匿名度高。其优点还包括超高并发、稳定高效、技术服务等特点,同时提供HTTP、HTTPS以及SOCKS5协议支持。此外,Sto...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询