在 Windows 64 位上使用带有 Delphi 的 libusb? [英] Use libusb with Delphi on Windows 64-bit?

查看:29
本文介绍了在 Windows 64 位上使用带有 Delphi 的 libusb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

读了一点,我担心我的 32 位 Delphi 应用程序将无法使用 libusb Windows 7 和其他 64 位 Windows 系统上的 64 位驱动程序,并且它将无法与我在这些系统上的自定义硬件设备通信.这是真的?如果是,是否有一些解决方法?我在这张照片中遗漏了什么吗?

After reading a little, I am concerned that my 32-bit Delphi application will not be able to use libusb 64-bit driver on Windows 7 and other 64-bit Windows systems, and that it will not be able to talk to my custom hardware device on those systems. Is this true? If yes, is there some workaround? Am I missing something in this picture?

推荐答案

在带有 WinUSB 后端(Windows 附带的 Microsoft 驱动程序)的 libusb 1.0 上,我们可以从 x86 应用程序(C# 使用的托管 c++ 库)与其通信应用程序).在 x86 和 x64 平台上的行为是相同的.

On libusb 1.0 with the WinUSB backend (Microsoft driver included with windows) we have no problem to communicate with it from an x86 app (Managed c++ library used by C# applications). The behavior is the same on both x86 and x64 platforms.

我不知道 libusb 0.1(能够使用 libusb-win32 内核驱动程序的旧版本),但是当您的链接指向 1.0 版本时,您似乎没有使用它.

在某些时候,libusb 1.0 将支持 libusb-win32 内核驱动程序,但除非在特定情况下没有必要(WinUSB 有一些限制,但我从未遇到过)

这篇关于在 Windows 64 位上使用带有 Delphi 的 libusb?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆