曾经遇到过必须在计算机上注册DLL文件的Windows问题吗?(Windows)DLL文件,也称为动态链接库(Dynamic Link Library),是包含跨多个应用程序使用的函数的文件。
例如,Microsoft Office有数百个DLL文件,可以在各种Office程序之间使用这些文件来执行某些特定功能,例如拼写检查等。多个程序可以同时加载同一个DLL。
在Windows中注册 32 位或 64 位DLL(DLLs)
如果由于某种损坏或安装失败而需要注册DLL ,您可以按照下面概述的方法手动进行。(DLL)
第 1 步(Step 1):首先单击开始(Start),然后单击运行(Run)。
第 2 步:现在注册(Step 2)DLL文件所需要做的就是输入 regsvr32 命令,然后输入DLL文件的路径。
regsvr32 “C:\Windows\System32\myfile.dll”
第 3 步:现在单击“确定”,您应该会收到(Step 3)DLL已成功注册的确认消息。
就是这样!现在,您的DLL已成功添加到注册表中,可供Windows程序使用。请注意,如果您收到错误消息,则可能是您使用的是 64 位版本的命令,而不是 32 位版本。如果您安装了 64 位版本的Windows并且DLL是 32 位的,那么您应该使用 32 位版本的 regsvr32 运行命令:
%systemroot%\SysWoW64\regsvr32 <PATH TO DLL>
此外,如果您使用的是 32 位DLL,请确保 在运行命令之前先将文件从%systemroot%\System32文件夹移动到 %systemroot%\SysWoW64否则,您可能会看到如下消息:
The module failed to load
The specified module could not be found
如果您无法注册DLL文件并且最终收到一条错误消息,指出尝试注册DLL文件失败,您可能需要在 Windows 中禁用 UAC(用户帐户控制)。
众所周知,关闭UAC可以解决尝试注册DLL(DLLs)失败的问题。其他问题可能是您需要右键单击命令提示符并选择Run as Administrator。有时如果命令提示符没有管理员权限,注册DLL命令会失败。
最后,如果 regsvr32 命令丢失或损坏,您可以运行系统文件检查器来修复原始Windows系统文件的任何问题。如果您仍有问题,请发表评论!享受!
How to Register a DLL File in Windows
Ever run into a Windows problem where you have to register а DLL file on your computer? A DLL fіle, aka Dynamic Link Library, are files that сontain functions used across multірle аpplicationѕ.
For example, Microsoft Office has hundreds of DLL files that can be used between the various Office programs to perform certain certain functions, such as spell checking, etc. Multiple programs can load the same DLL at the same time.
Register 32 or 64-bit DLLs in Windows
If you need to register a DLL due to some sort of corruption or installation failure, you can do it manually by following the method outlined below.
Step 1: First click on Start, then Run.
Step 2: Now all you have to do to register a DLL file is to type in the regsvr32 command, followed by the path of the DLL file.
regsvr32 “C:\Windows\System32\myfile.dll”
Step 3: Now click OK and you should get a confirmation message that the DLL has been registered successfully.
That’s it! Now your DLL has been successfully added to the registry and can be used by Windows programs. Note that if you get an error message, it could be that you are using the 64-bit version of the command and not the 32-bit version. If you have a 64-bit version of Windows installed and the DLL is 32-bit, then you should run the command using the 32-bit version of regsvr32:
%systemroot%\SysWoW64\regsvr32 <PATH TO DLL>
Also, if you are using a 32-bit DLL, then make sure to move the file from the %systemroot%\System32 folder to the %systemroot%\SysWoW64 folder first before running the command. Otherwise, you might see messages like:
The module failed to load
The specified module could not be found
If you are not able to register a DLL file and you end up getting an error message saying that the attempt to register the DLL file failed, you might want to disable UAC (User Account Control) in Windows.
Turning off UAC has been known to fix the issue of failed attempts to register DLLs. Other issues could be that you need to right-click on the command prompt and choose Run as Administrator. Sometimes if the command prompt does not have administrator privileges, the register DLL command will fail.
Finally, if the regsvr32 command is missing or corrupt, you can run system file checker to repair any problems with the original Windows system files. If you still have issues, post a comment! Enjoy!