Description: 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 parameters set to open multiple serial. 3.void OnCommSend (unsigned int uiCom, redeem sSendData, unsigned int uiKind) sent to the designated serial data. UiCom them for a specific serial port, a serial port to the uiCom 0; SSendData to be sent to the string; UiKind : Send data types : 0 : raw data 1 : Add two carriage returns : plus checksum. 4. OnMscommsSet void () set to open serial interface, serial port settings and set up to preserve documents. 5. BOOL OnComportTimerProcess (redeem strProcess [MaxPort]) Serial judgment of a group receiving data has been received End. 6. BOOL OnPopupDialog () Platform: |
Size: 921143 |
Author:刘伟 |
Hits:
Description: 检查windows网络连接和端口,能够检查一些隐藏的网络连接和网络端口的小程序源代码-Check the windows network connections and port, to check a number of hidden network connections and network ports applet source code Platform: |
Size: 891904 |
Author: |
Hits: