找回密码
 立即注册
communication通信控件the | 企业管理 2022-09-22 110 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
这篇文章详细介绍了VisualC++5.0版中相关通信控件的使用方法,并给出了一个使用该控件编写的简单通用的通信示例程序。
关键字:串行通信通信控件
随着Win95的逐步遍及,程序员们越来越愿意在Win95下编程,而VisualC++正变成首要的开发工具。然而用VC在Win95下开发串行通信程序是程序员们经常会遇到确又令人头痛的一件事,不但要理解很多杂乱的API函数,还要掌握多线程编程。令人高兴的是VisualC++中提供的通信控件帮助我们管理了这一难题,通过对这一控件的准确使用,我们可以轻松地编写出所需的串行通信程序。
下面,我们将联系一个详细的比如来说明。本程序的编程环境是Win95和VisualC++5.0。这个编程示例的功能比较强,它可以由用户选定进行传输的通信端口,并设定这个端口的相关参数,包括波特率、数据位、中止位、奇偶校验和流量控制等。还具有发送数据和接收数据的两层功能。
一.在程序中嵌入通信控件

(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)

[下载]15161915247.rar




上一篇:VC环境中调用TeeChart控件实现数据曲线分析
下一篇:一个实时曲线类