包装 32 位 .dll 使其在 64 位操作系统中工作的方法 [英] Ways to wrap 32-bit .dll so it will work in a 64-bit OS

查看:25
本文介绍了包装 32 位 .dll 使其在 64 位操作系统中工作的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我一直在我的 java 程序中使用 JPIB 与 GPIB 设备进行通信.但是,我遇到了一个障碍.较新的系统建立在 64 位操作系统上.但是,jpib.dll 文件是用 32 位编写的.我想不出任何真正依赖于 64 位的调用.

So, I've been using JPIB to communicate with GPIB devices in my java program. However, I have run into a snag. Newer systems are built on 64 bit OS's. However, the jpib.dll file is written in 32-bit. I can't think of any kind of calls that it would need to make that are truly 64-bit dependent.

这里真正的问题是 JPIB 项目自 2006 年 9 月以来一直没有更新.我曾尝试通过 SourceForge 向开发人员发送电子邮件,但我认为我不会得到任何结果.

The real trouble here is that the JPIB project hasn't been updated since september of 2006. I've tried emailing the dev through SourceForge but I don't think I'll get anywhere with that.

有没有人知道解决这个问题的任何方法?或者知道如何(并且可以告诉我如何)将 .dll 重新编译为 AMD-64 合规性?

Does anyone know of any ways around this? Or know how (and could tell me how) to recompile the .dll into AMD-64 compliance?

推荐答案

注意:我不知道 JPIB 和 GPIB 是什么.

Note: I have no idea what JPIB and GPIB are.

如果您想按原样使用 DLL,那么您需要编写一个可以动态链接该 DLL 并通过某种 IPC 与您的应用程序通信的应用程序.

If you want to use the DLL as-is, then you'll need to write an application that can dynamically link that DLL and communicates with your application via some sort of IPC.

如果您想重建该 DLL,则需要获取源代码及其所有依赖项并安装构建工具.这应该不会太难,但如果您正在安装 MS Visual Studio,我似乎需要一些关于安装 x64 内容的问题.不过,这可能取决于您的安装平台;如果您在 x64 上安装,大概它会正常工作.

If you want to rebuild that DLL, then you'll need to get the source and all of its dependencies and install the build tools. This shouldn't be too tough although if you're installing MS Visual Studio I seem to require a couple of gotchas regarding getting the x64 stuff installed. This may depend on your install platform, though; if you're installing on x64 presumably it'll Just Work.

这篇关于包装 32 位 .dll 使其在 64 位操作系统中工作的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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