[企业管理] VC++中用通讯控件开发串行通信程序

[复制链接]
发表于 2022-9-22 15:16:18
这篇文章详细介绍了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控件实现数据曲线分析
下一篇:一个实时曲线类

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表