将32位COM DLL注册到64位Windows 7 [英] Register 32 bit COM DLL to 64 bit Windows 7
问题描述
这是一个Win32 DLL。
我想在.NET平台上的Visual C#项目中使用这个DLL。
我无法在项目中添加对此DLL的引用。
我尝试在Windows 7 64位的管理员的命令提示符中注册,但是我收到这个错误:
检查是否该模块与regsvr32.exe的x86(32位)或x64(64位)版本兼容。
把DLL文件放到windows / system32文件夹下。然后我以管理员身份打开命令提示符。我写 regsvr32 huginalpha.dll
并执行此命令。但我收到错误。我可以做什么?
问题可能是您尝试使用64位版本的regsvr32注册一个32位库。 查看此知识库文章 - 您需要从Windows \SysWOW64为32位库运行regsvr32。
I have a 32 bit COM component DLL and this DLL is written in Delphi. It's a Win32 DLL. I want to use this DLL in my Visual C# project on .NET platform.
I can't add reference to this DLL in the project. I try to register it in Command Prompt as Administrator in Windows 7 64 bit, but I get this error:
Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.
First I put DLL file to windows/system32 folder. Then I open Command Prompt as Administrator. I write regsvr32 huginalpha.dll
and execute this command. But I get the error. what can I do?
The problem is likely you try to register a 32-bit library with 64-bit version of regsvr32. See this KB article - you need to run regsvr32 from windows\SysWOW64 for 32-bit libraries.
这篇关于将32位COM DLL注册到64位Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!