Transfer: https: //jingyan.baidu.com/article/e75aca850f574c142edac6ee.html
After missing dll problem often encountered in the windows, get dll files are generally have to register dll file to function properly on how to register the DLL file, you can see below.
First, register the DLL file method
-
windows own program register DLL files (can press WIN + R keys, the "Run" dialog execution, WIN key location as shown.
-
Open the "Run" command input shown below.
-
After the execution can wait for the help command parameters. To register a DLL file, at the command followed by the corresponding dll file, specifically to see the back of the operation.
END
Second, the registration of the DLL file type support
-
DLL is the abbreviation of dynamic link library, use the command type is registered DLL Component DLL files, component-based DLL files and DLL files ordinary except that the default export four functions in the program when you can see these four a derivation function DllGetClassObject, DllRegisterServer, DllUnregisterServer and DllMain, as shown in FIG.
-
If the dll file does not export the four standard functions mentioned above, can not be registered, as shown below, dll.dll is an ordinary individual DLL file written, can not be registered.
END
Third, the system DLL file registration
-
To correct registration system DLL files, dll file first to ensure compatibility with the current system platform. If the dll file that is used is not appropriate for the current operating system version, incompatibilities prompt similar to the following will be prompted.
-
Next, specify the absolute path to dll registration, otherwise an error message will be shown in the following figure.
-
Windows system dll files are generally related directly to register.
-
Click the "OK" button or press the Enter key to successful registration.
END
Fourth, third-party DLL file registration
-
Third-party DLL file registration need to have administrator privileges, otherwise it will fail registration
-
In order to perform registration command with administrator rights, you can refer to the following two methods, a method, first find the cmd command prompt, right click and choose "Run as administrator."
-
Then you can execute commands registered in the command prompt.
-
Another method is similar to the above method, just write a bat batch file commands. Note Save the file type to "All Types."
-
Next, right click and choose "Run as administrator" on the bat batch file.
-
Still can run, principles and run directly at the command prompt is the same, but the second method can easily operate other people.