摘要
简单说明了在Msdos和Windows下的编程差别及怎样用WindowsAPI函数在Delphi下建立串行通信机制,着重论述了在Windows下基于串行通信的API函数的功能及使用方法,讨论了怎样打开、设置、读写和关闭串行端口,并给出了WindowsAPI函数在使用时应重点注意的几个问题.通过具体的实例给出了在Delphi下利用Windows环境的通信编程技术实现串行通信的程序设计.
The article illuminates briefly the programm differences between MSDOS and Windows,as well as how to use Windows API function for establishing seria l communication method.And then it e mphasizes on functions and methods o f serial commu-nication API function.The paper mainly discusses how to open,how to set u p,how to read and write,and how to clo se serial port.And during using Windows API fu nction several questions should be p aid attention to.At the end of the article the communication programmed technolo gy,which completes serial communic ation design under the Windows condi tion,is given an example by using Delphi software.It is explained in detail.
出处
《宁夏工程技术》
CAS
2003年第2期141-143,共3页
Ningxia Engineering Technology