所属分类:
串口编程
开发工具:Visual Basic
文件大小:13KB
下载次数:12
上传日期:2005-11-08 17:30:12
说明: 使用MSCOMM控件主要是通过事件来处理串行口的交互,即当数据到达时,控件的OnComm的事件就会来捕获或处理这些通讯事件。而OnComm事件也可以用来捕获和处理通讯错误。在实际应用中,一个MSCOMM控件就对应一个串行口,所以如果要处理多个串行口的话,必须有相应数量的控件与之对应。
(use MSCOMM control mainly through the incident to the serial interaction, that is, when the data arrived, the control of the incident will OnComm to capture or handle these communications incident. OnComm incident which can also be used to capture and handle communication error. In practical application, a corresponding MSCOMM control on a serial port, so if we are to handle multiple serial port, then there must be a corresponding amount of the corresponding controls.)