需要用于从COM端口读取的代码..winxp [英] need code for reading from a com port..winxp
本文介绍了需要用于从COM端口读取的代码..winxp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
需要从COM端口读取代码... winxp请帮助我
need code for reading from a com port......winxp pls help me
推荐答案
请参见CreateFile()
[
请参阅MSDN中的通信功能" [
SeeCreateFile()
[^],ReadFile()
,ReadFileEx()
andCloseHandle()
(you will find links to these functions at the bottom of the above link). Pay attention to the "Communications Resources" sentence of theCreateFile
description.
See "Communications Functions" in the MSDN [^] for an overwiew of COM port related functions.
请参见 [ ReadFile [
See "Configuring a Communications Resource"[^] for properly configuring the COM port and then call the ReadFile[^] function.
这篇关于需要用于从COM端口读取的代码..winxp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文