阅读背景:

如何解决VB6中的运行时错误8015 ?

来源:互联网 

Good Day

美好的一天

I'm trying to send data to a comport "COM1". A generic printer driver is set up on comport "COM1". When sending data to this port I receive a run-time error '8015: Could not set comm state, there maybe one or more invalid communications parameters'. After clicking ok to that error message i get another error, run-time error '8018: Operation valid only when the port is open'. I believe this issue can be resolve because in Command Prompt I can copy a text file to the port with the command "copy C:\textfile.txt COM1" and it works without any issues. That's my situation.I'm trying to send data to a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: