如何在Windows 7下运行mscomm32.ocx?
在将 Windows 从 Vista Home Basic 更新到 7 Home Premium 之前,我们得到了一个运行良好的应用程序。我们使用mscomm32.ocx来控制串口,但64位操作系统似乎不支持它。
每次我们尝试读取端口:Thisform.msCommControl.Input 我们得到以下信息:
来自 MSComm 的 OLE IDispath 异常代码 0:读取通讯设备时出错
我们已经进行了大量不成功的测试。有谁知道如何解决这个问题?
We get an app that was working fine until update Windows from Vista Home Basic to 7 Home Premium. We use mscomm32.ocx to control serial port, but it seems it's not supported for 64 bits OS.
Each time we try to read the port: Thisform.msCommControl.Input We got the following:
OLE IDispath exception code 0 from MSComm: Error reading comm devide
We've made a lot of unsuccessful tests. Does any one know how to fix this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
解决方案是使用不断开发的更新控件,以便也支持较新的 Windows。 ADONTEC 的 SuperCom ActiveX 是 MSComm 兼容的 ActiveX,开发人员多年来一直使用它来取代 MSComm。它与 32 位和 64 位的 Windows 2000/XP/7/8 和 Windows 10 兼容。几分钟之内您就差不多完成了。在许多情况下,应用程序不仅运行速度更快,而且更加稳定,并且还提供更多功能。请在此处查看更多信息。
The solution is to use an updated control that is contantly under development so newer Windows are also supported. ADONTEC's SuperCom ActiveX is a MSComm compatible ActiveX that developers use for many years in order to replace the MSComm. It is compatible with 32 and 64 bit of Windows 2000/XP/7/8 and Windows 10. You are almost done in few minutes. In many cases the application runs not only faster but is by far more stable and it also offers by far more functionality. See more info here.
MSCOMM32.OCX 不适用于 Windows 7 64 位计算机。然而,看起来很奇怪,我有一个 VB6 程序从虚拟通信端口(USB ~ 串行转换器)控制设备
它在 Windows 8.64 位机器上运行良好。
唯一的问题是转换器驱动程序必须修改才能在 64 位上运行。
如果您使用的是真正的 com 端口,那没关系。
在装有 Windows 8 的 64 位机器上尝试一下
that MSCOMM32.OCX will not work with Windows 7 64 bit machines. However, strange as it may seem I have a VB6 program controlling equipment from a virtual comm port (USB ~ serial converter)
It works fine on windows 8.64 bit machine.
The only thing is that the converter driver had to be modified to run on 64 bit.
If you are using a real com port that doesn't matter.
Try it on a 64 bit machine with Windows 8