Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
621 views
in Technique[技术] by (71.8m points)

dll - 如何在Windows 7 64位上注册DLL文件?(How do I register a DLL file on Windows 7 64-bit?)

I have tried to use the following code:

(我试过使用以下代码:)

cd c:windowssystem32
regsvr32.exe dllname.ax

But this is not working for me.

(但这不适合我。)

How can I register a DLL file on Windows 7 with a 64-bit processor?

(如何在Windows 7上使用64位处理器注册DLL文件?)

  ask by Rajkumar Reddy translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Well, you don't specify if it's a 32 or 64 bit dll and you don't include the error message, but I'll guess that it's the same issue as described in this KB article: Error Message When You Run Regsvr32.exe on 64-Bit Windows

(好吧,你没有指定它是32位还是64位dll并且你没有包含错误消息,但是我猜它与这篇知识库文章中描述的问题相同: 运行Regsvr32.exe时出现错误信息在64位Windows上)

Quote from that article:

(从那篇文章引用:)

This behavior occurs because the Regsvr32.exe file in the System32 folder is a 64-bit version.

(出现此问题的原因System32文件夹中的Regsvr32.exe文件是64位版本。)

When you run Regsvr32 to register a DLL, you are using the 64-bit version by default.

(当您运行Regsvr32以注册DLL时,默认情况下您使用的是64位版本。)

Solution from that article:

(该文章的解决方案:)

To resolve this issue, run Regsvr32.exe from the %SystemRoot%\Syswow64 folder.

(若要解决此问题,请从%SystemRoot%\ Syswow64文件夹运行Regsvr32.exe。)

For example, type the following commands to register the DLL: cd \windows\syswow64 regsvr32 c:\filename.dll

(例如,键入以下命令以注册DLL: cd \windows\syswow64 regsvr32 c:\filename.dll)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...