注册32位COM DLL到64位Windows 7 [英] Register 32 bit COM DLL to 64 bit Windows 7

查看:379
本文介绍了注册32位COM DLL到64位Windows 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个32位的COM组件DLL,这个DLL是用Delphi编写的。
它是一个Win32 DLL。
我想在.NET平台上的Visual C#项目中使用此DLL。

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.

我无法在项目中添加对此DLL的引用。
我试图注册它在命令提示符作为管理员在Windows 7 64位,但我得到这个错误:

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:


检查该模块与regsvr32.exe的x86(32位)或x64(64位)版本兼容。

Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.

把DLL文件放到windows / system32文件夹。然后我以管理员身份打开命令提示符。我写 regsvr32 huginalpha.dll 并执行此命令。但我得到的错误。我可以做什么?

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?

推荐答案

问题可能是您尝试注册一个32位库与64位版本的regsvr32 。 请参阅此知识库文章 - 您需要从windows \SysWOW64为32位库运行regsvr32 。

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屋!

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