登录
首页 » Menu菜单 » 1.BOOL OnCommsCreate(CWnd* pParentWnd) 创建串口,本DLL同时创建5个串口。pParentWnd为窗口指针,一般为t...

1.BOOL OnCommsCreate(CWnd* pParentWnd) 创建串口,本DLL同时创建5个串口。pParentWnd为窗口指针,一般为t...

于 2022-01-22 发布 文件大小:899.55 kB
0 91
下载积分: 2 下载次数: 1

代码说明:

1.BOOL OnCommsCreate(CWnd* pParentWnd) 创建串口,本DLL同时创建5个串口。pParentWnd为窗口指针,一般为this。 2. BOOL OnComportOpen() 根据串口设置文件中的设置参数,打开多串口。 3.void OnCommSend(unsigned int uiCom, CString sSendData, unsigned int uiKind) 往指定串口发送数据。其中uiCom为指定的串口,注意串口1的uiCom为0;sSendData为要发送的字符串; uiKind: 发送数据类型:0:原始数据 1:加回车符 2:加校验和。 4.void OnMscommsSet() 打开串口设置界面,改变串口设置,并保存到设置文件中。 5.BOOL OnComportTimerProcess(CString strProcess[MaxPort]) 判断串口接收的一组数据是否已经接收完。 6. BOOL OnPopupDialog() 打开串口收发数据显示调试界面。 7. BOOL OnGetPortUse(unsigned int uiCom) . 判断指定串口是否使用。 8. BOOL OnGetPortExit(unsigned int uiCom) 判断指定串口在本机上是否存在。 9. void OnPortClose(unsigned int uiCom) 关闭指定串口。 10. void OnPortOpen(unsigned int uiCom) 打开指定串口。 11. void OnCloseAllPorts() 关闭所有串口。 12. void OnOpenAllPorts() 打开所有串口。 -1.BOOL OnCommsCreate (CWnd* pParentWnd) Serial create the DLL while creating five serial. PParentWnd pointer to the window, but generally this. 2. BOOL OnComportOpen () Serial document under the

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696522资源总数
  • 104029会员总数
  • 31今日下载