libpng12.dll 与 Win7(64 位)不兼容吗?
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.