MSComm控件使用详解(国外英文资料).doc
文本预览下载声明
MSComm控件使用详解(国外英文资料)
The MSComm control USES a detailed solution
Author: unknown origin: unknown release date: 2005-5-1518:17:54 release: admin
order
MSComm controls two ways of handling communication
CommPort property
RThreshold properties
CTSHolding properties
SThreshold properties
CDHolding properties
DSRHolding properties
Settings properties
InputLen properties
EOFEnable properties
Handshake constant
OnComm constant
An InputMode constant
The error message
The MSComm control transports and receives data through serial ports, providing serial communication capabilities for applications. MSComm controls are very convenient in serial programming, so programmers dont have to take the time to understand more complex API functions, and they can be used in languages such as VC, VB, Delphi, etc. Microsoft Communications Control is Microsoft company (hereinafter referred to as MSComm) provides a simplified under Windows serial communication programming ActiveX controls, it provides the application through the serial interface is simple and convenient way to send and receive data. Specifically, it provides two ways of dealing with communication: one is the event-driven approach and one is the query method.
MSComm controls two ways of handling communication
The MSComm control provides the following two ways of handling communication: event-driven and querying.
The 1.1 event driven approach
Event-driven communication is a very effective way of dealing with serial port interactions. In many cases, the need To be notified when events occur, for example, in the serial receive buffer character, or Carrier Detect (CD) or the Request To Send (RTS) online To a character or a change occurs. In these cases, the communication events can be captured and processed using the OnComm event of the MSComm control. The OnComm event can also check and handle communication errors. For all communication and communication errors, see the CommEvent attribute. In the course of programming, you can
显示全部