How do I register a DLL file on Windows 7 64-bit?

2019-01-03 01:12发布

I have tried to use the following code:

cd c:\windows\system32
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?

15条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-01-03 01:46

Type regsvr32 name.dll into the Command Prompt (executed in elevated mode!) and press "Enter." Note that name.dll should be replaced with the name of the DLL that you want to register. For example, if you want to register the iexplore.dll, type regsvr32 iexplore.dll.

查看更多
成全新的幸福
3楼-- · 2019-01-03 01:49

Here is how I fixed this issue on a Win7 x64 machine:

1 - error message:

"CoCreateInstance() failed Plkease check your registry entries CLSID{F088EA74-2E87-11D3-B1F3-00C0F03C37D3} and make sure you are logged in as an administrator"

2 - fix procedure:

  • Start/type cmd/RightMouseClick on cmd.exe and choose to "Run as Administrator"
  • typed: regsvr32 /s C:\Program Files\Autodesk\3ds Max Design 2015\atl.dll regsvr32 /s C:\Program Files\Autodesk\3ds Max Design 2015\MAXComponents.dll
  • restart Win 7 and back in business again !

Hope this helps !

查看更多
Rolldiameter
4楼-- · 2019-01-03 01:50

If the DLL is 32 bit:

  1. Copy the DLL to C:\Windows\SysWoW64\
  2. In elevated cmd: %windir%\SysWoW64\regsvr32.exe %windir%\SysWoW64\namedll.dll

if the DLL is 64 bit:

  1. Copy the DLL to C:\Windows\System32\
  2. In elevated cmd: %windir%\System32\regsvr32.exe %windir%\System32\namedll.dll
查看更多
我只想做你的唯一
5楼-- · 2019-01-03 01:51

Finally I found the solution just run CMD as administrator then write

cd \windows\syswow64

then write this

regsvr32 c:\filename.dll

I hope that answer will help you

查看更多
放荡不羁爱自由
6楼-- · 2019-01-03 01:53

Knowing the error message would be rather valuable. It is meant to provide info, even though it doesn't make any sense to you it does to us. Being forced to guess, I'd say that the DLL is a 32-bit DirectX filter. In which case this should be the proper course of action:

cd c:\windows\syswow64
move ..\system32\dllname.ax .
regsvr32.exe dllname.ax

This must be run at an elevated command prompt so that UAC cannot stop the registry access that's required. Ask more questions about this at superuser.com

查看更多
男人必须洒脱
7楼-- · 2019-01-03 01:58

Open the start menu and type cmd into the search box Hold Ctrl + Shift and press Enter

This runs the Command Prompt in Administrator mode.

Now type: regsvr32 MyComobject.dll

查看更多
登录 后发表回答