摘要
介绍如何利用Win32的底层API函数开发串口通信类CserialPort,与Microsoft Commuinications Control控件相比,采用该串口通信类对串口设备操作时,能够在一定程度上避免对串口设备的“屏蔽”,增加对串口操作的透明度,提高串口传输数据的可靠性,方便程序员对串口的编程。同时说明了如何利用该串口类编写串行通信程序的方法。
This paper introduces how to develop Serial Port Class (CserialPort) with Win32 API (Application Program Interface) functions. Compared with Microsoft Communications Control which is provided by Microsoft, CserialPort can avoid the mask of using SerialPort to a certain extent, enhance the reliability of data transferring and make the Serial Port easier to use. At the same time, the method of using CSerialPort is also discussed in this paper.
出处
《北京石油化工学院学报》
2001年第2期26-29,共4页
Journal of Beijing Institute of Petrochemical Technology