佚名通过本文主要向大家介绍了vc 串口api,vc api串口通信,vc api,vc api函数大全,vc hook api等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 在VC下用API编写串口通讯的程序
描述:
描述:
1。我在VC下用API编写串口通讯的程序,运行过程中出现Application Error对话框:WARNING:WriteFile()Filed with the following error:系统找不到指定的文件。Port:1。但是在调试执行时却没有这一错误出现。为什么?出现这一错误的原因是什么?
2.运行过程中出现错误,说某处指令引用的内存不能为“written”.Unhandled exception in commtest.exe (MSVCRTD.DLL): 0xC0000005: Access Violation.这是为什么?谢谢!