介绍: 介绍如何在Win32中处理串口。串口通讯可以通过多种技术实现,例如:ActiveX,I/O存取和文件操作。本文介绍Win32平台下通过文件操作技术使...
代码说明:
介绍: 介绍如何在Win32中处理串口。串口通讯可以通过多种技术实现,例如:ActiveX,I/O存取和文件操作。本文介绍Win32平台下通过文件操作技术使用串口。程序员可以使用 Microsoft Visual C++ Version 6.0所提供的kernel32.lib。在Microsoft Windows(2000,Me,XP and 95/98)中,串口作为文件处理。因此可以通过Windows文件创建函数打开串口。 文章不仅介绍了串口通讯,也介绍了在串口通讯应用程序中实现多任务,多任务可以使串口通讯应用程序在同一时间处理更多的任务,例如:读数据任务,发送数据任务,GUI任务等。-Introduction: Introduction of how to deal with Win32 serial port. Serial communication can realize through a variety of technologies, such as: ActiveX, I/O access and file operations. This article describes the Win32 platform by file operation technique using the serial port. Programmers can use Microsoft Visual C++ Version 6.0 provided by kernel32.lib. In Microsoft Windows (2000, Me, XP and 95/98), the serial port as a file handle. Windows files can be created through the open serial port function. Article not only introduces serial communications, also introduced in the serial communication applications realize multi-tasking, multi-mission can make serial communication applications at
下载说明:请别用迅雷下载,失败请重下,重下不扣分!