(This article introduces the use of the relevant communication controls in Visual C 5.0 in detail, and gives a simple and general communication sample program written with this control.
Keywords: serial communication communication control
With the gradual popularization of Win95, programmers are more and more willing to program under Win95, and VisualC is becoming the primary development tool. However, the use of VC to develop serial communication programs under Win95 is a headache that programmers often encounter, not only to understand a lot of messy API functions, but also to master multi-thread programming. The good news is that the communication control provided in VisualC helps us manage this difficult problem. Through the accurate use of this control, we can easily write the required serial communication program.
Below, we will link a detailed example to illustrate. The programming environment of this program is Win95 and VisualC 5.0. The function of this programming example is relatively strong, it can be selected by the user to transmit the communication port, and set the relevant parameters of this port, including baud rate, data bits, abort bits, parity and flow control. There are also two layers of functions for sending and receiving data.
1. Embed communication controls in the program)