As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center提供指导。




已关闭8年。




我正在尝试编写一个C++程序,该程序通过RS-232串行端口从测量设备读取数据流,并将其转换为可读格式。我以前从未编码过串口通信。

问题:有人可以使用有用的,易于理解的链接教程吗?

约束:
  • 编程语言:C++
  • 操作系统:Windows(XP)32位
  • 编译器:MinGW(用于原型(prototype)制作),Eclipse(最终版)

  • 这意味着:
  • Visual Studio
  • Borland,
  • NO 代码块
  • 破旧的DevC++
  • 最佳答案

    标准Win32 API与通信端口的句柄一起使用。 (实际上,重叠的API甚至可以在Windows 9x / ME上使用!)

    10-02 02:57
    查看更多