libpng12.dll 与 Win7(64 位)不兼容吗?

发布于 2024-12-18 18:07:32 字数 180 浏览 6 评论 0原文

我在 VisualStudio 2008 中使用 libpng 包来读取 png 图像,并且我的程序必须使用 libpng12.dll。我将libpng12.dll放在Windows\System32和Windows\SysWOW64中,并想使用regsvr32.exe来注册它,但它不起作用,所以我的程序也无法使用它。我该如何修复它?先感谢您!

I use libpng package in VisualStudio 2008 to read the png images and my program has to use the libpng12.dll. I putted the libpng12.dll in Windows\System32 and Windows\SysWOW64 and wanted to use regsvr32.exe to register it, but it didn't work so my program also cannot use it. How can I fix it? Thank you in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒中人 2024-12-25 18:07:32

DLL 必须与 EXE 的位数相匹配。 64位EXE只能使用64位DLL,32位EXE只能使用32位DLL。 (排除进程外 COM 组件,但这与此无关)。

顺便说一句,修复 DLL 问题的常用工具是 Dependency Walker

DLL's have to match the bit-ness of the EXE. A 64 bits EXE can only use 64 bits DLLs, and a 32 bits EXE can only use 32 bits DLLs. (Barring out-of-process COM components, but that's irrelevant here).

BTW, the normal tool to fix DLL problems is Dependency Walker.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文