首页 > 解决方案 > VB6:在 Windows Server 2019 64 位上找不到 gpib-32.dll

问题描述

我有一个 VB6 应用程序,它使用带有 gpib-32.dll 的 NI4882 api (VBIB32) 并且在所有部署的 PC(windows server 2003 32 位)中运行良好。

然而,最近我们有一台新电脑(windows server 2019 64 位),即使我检查了 dll 在 C:\Windows\SysWOW64 中,应用程序也找不到 gpib-32.dll。当应用程序从 dll 调用函数时,提示“找不到文件:gpib-32.dll”错误。

我不确定这是 64 位上的 dll 兼容性问题,还是我错过了什么?

编辑:

这是一些 DLL 入口函数声明:

' NI-488.2 DLL entry function declarations

Declare Function ibask32 Lib "gpib-32.dll" Alias "ibask" (ByVal ud As Long, ByVal opt As Long, value As Long) As Long

Declare Function ibbna32 Lib "gpib-32.dll" Alias "ibbnaA" (ByVal ud As Long, sstr As Any) As Long

Declare Function ibcac32 Lib "gpib-32.dll" Alias "ibcac" (ByVal ud As Long, ByVal v As Long) As Long

' the rest .....

标签: vb6gpib

解决方案


推荐阅读