In-depth description of Regsvr32 usage and description of error messages

  

There are a lot of unfamiliar processes in the system. I believe that everyone is unclear about the Regsvr32 problem. However, it is a pity that such useful files are not understood. Today, this tutorial will take everyone to understand. under.

Description of Regsvr32 Usage and Error Messages For those object link and embed (OLE) controls that you can register yourself, such as dynamic link library (DLL) files or ActiveX Control (OCX) files, you can use the Regsvr32 tool ( Regsvr32.exe) to register and unregister them.

Regsvr32.exe Usage RegSvr32.exe has the following command line options:

Regsvr32 [/n] [/i[:cmdline]] dllname /u - Unregister server

/i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall /n - do not call DllRegisterServer; this option must be used with /i When you use Regsvr32.exe, it will try to load The component also calls its DLLSelfRegister function. If this attempt is successful, Regsvr32.exe will display a dialog indicating success.

If this attempt fails, Regsvr32.exe returns an error message, which may include a Win32 error code. To see a list of Win32 error codes, see the following Microsoft Web site: http://msdn.microsoft.com/librar ... n32_error_codes.asp For example, to manually register the Sample.ocx ActiveX control, please prompt at MS-DOS Type the following command at the symbol: c:regsvr32.exe sample.ocx Regsvr32.exe Error Messages

The following list describes the RegSvr32 error messages and possible causes. Unrecognized flag: /invalid_flag The typed flag or switch combination is invalid (see the section "Regsvr32.exe Usage" in this article). No DLL name specified. The .dll file name is not included (see the section "Regsvr32.exe Usage" in this article). Dllname was loaded, but the DllRegisterServer or DllUnregisterServer entry point was not found. Dllname is not a .dll or .ocx file.

For example, typing regsvr32 wjview.exe will generate the error message. Dllname is not an executable file and no registration helper is registered for this file type. Dllname is not an executable (.exe, .dll, or .ocx).

For example, typing regsvr32 autoexec.bat will generate the error message. Dllname was loaded, but the DllRegisterServer or DllUnregisterServer entry point was not found. Dllname may not be exported, or there may be a corrupted version of Dllname in memory. Consider using Pview to detect the file and delete it. Dllname is not self-registerable or a corrupted version is in memory.

For example, typing regsvr32 icwdial.dll returns the error message because the Icwdial.dll file cannot be registered by itself. If you suspect that there is a corrupted version of Dllname in memory, try restarting your computer or re-fetching the original version of the file. If you are running Windows NT, you may need to use the Kill or Pview tool from the Microsoft Windows NT Server 4.0 Resource Kit. For additional information, click to view the following Microsoft Knowledge Base article: 197155 How to terminate an orphaned process OleInitialize failed (or OleUninitialize failed). Regsvr32 must initialize the COM library before calling the required COM library functions and undoing them when they are closed The initialization of the library. These error messages occur if an attempt to initialize or undo the initialization of a COM library fails.

Copyright © Windows knowledge All Rights Reserved