Access 2007 中串行通信的建议
我需要与通过 Microsoft Access 中的串行端口连接的条形码扫描仪进行通信。在旧版本的 Access 中,我能够使用 MSCOMM32.ocx 的包装器,但该包装器似乎不再起作用。我无法使用楔形通信,因为我需要使用仅通过 RS232 接口支持的 ACK/NACK,并且我需要向扫描仪发送消息,这也仅通过 RS232 接口支持。
Access 2007 中是否存在支持串行通信的广泛使用的控件?
编辑:如果有人遇到这个问题,最新版本的 MSCOMM32.ocx(我相信日期为 3/09)在撰写本文时仍然可以正常工作。旧版本的 MSCOMM32.ocx 不起作用。
I need to communicate with a bar code scanner connected over a serial port in Microsoft Access. In older versions of Access I was able to use a wrapper around MSCOMM32.ocx that no longer seems to work. I can't use wedge communication because I need to use ACK/NACK which is only supported through the RS232 interface and I need to send messages to the scanner, which is also only supported through the RS232 interface.
Are there any controls in widespread use that support serial communication in Access 2007?
EDIT: In case anyone comes across this, the newest version of MSCOMM32.ocx (I believe dated 3/09) still works fine as of this writing. It is older versions of MSCOMM32.ocx that do not work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不能保证答案,但我可以说 Tony Toews 是一个可靠的人,关于这个话题,他去年在他的博客上发布了:
旧版本MSCOMM32.OCX 版本已设置“kill bit”标志。
正如 Tony 所说,依赖 Windows API 几乎总是比通过连接到 ActiveX 控件来构建应用程序更好。 Windows API 并不真正存在 ActiveX 控件和 OCX 所存在的版本控制问题。
I can't vouch for the answer, but I can say that Tony Toews is a reliable person, and on this topic, he posted on his blog last year:
An older version of MSCOMM32.OCX has had the "kill bit" flag set.
As Tony says, it's almost always better to rely on Windows APIs than it is to build your app with connections to an ActiveX control. Windows APIs don't really have the versioning problems that ActiveX controls and OCX's do.