

If the DLL you got does not have type library file associated with it, one can be generated by using the Regasm utility and the /tlb option.

Regasm can also be used to unregister a DLL. Registration data for a program is recognized only when the program is loaded. The /codebase parameter is an optional parameter that adds information about the DLL to the Windows registry which specifies the assemblys path on the disk. The command to register a file called Sample.dll is: REGISTER /S SAMPLE.DLL To register a DLL as a system global, go to the SYSTEM32 directory and locate the DLL mentioned in the error message. These commands are included in the development kit when Visual Basic or Visual FoxPro is installed.ĭepending on the application, you may have to register several OCX files this way. Anywhere in this folder, right click on the screen, and select paste. You will need to use the Regsvr.exe, Regsvr16.exe (16-bit), or Regsvr32.exe (32-bit) command to register the OCX file as system global. Navigate to your root drive (usually C:), and then to Windows and system32.Step 1:First click on Start, then Run(Open command promot) 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. Make a note of the file that needs to be registered. 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. You may receive an error when installing or running an application stating that an OCX file or a DLL file needs to be registered as system global.
#REGISTER A DLL FILE IN WINDOWS 10 HOW TO#
This article describes how to register OCX and DLL files as system globals.Īpplies to: Windows 10 - all editions Original KB number: 186597 Summary
