注册 登录
编程论坛 VC++/MFC

MFC中用API函数实现串口通信,遇到问题

wufengxiaoba 发布于 2011-08-26 16:04, 706 次点击
开始使用虚拟COM口测试时没有报错,后来使用物理端口测试时:打开串口后,启动这个m_Port.StartMonitoring()//m_Port为 CSerialPort类对象
报错了,求解...!

这个错误 :WARNING: WaitCommEvent()failed with the following error: 拒绝访问

 
1 回复
#2
laznrbfe2011-09-10 15:25
m_Port.StartMonitoring();//m_Port为 CSerialPort类对象
少个;是吗?
还是private,protect??
1