There are occasions when you need to use an ActiveX component in your project, and the DLL is available on your machine, but it isn't registered. In this situation, you must manually register the component before you can use it. Fortunately, ActiveX components are designed to be self-registering: every ActiveX DLL contains information about itself that Windows can write to the registry using a program called RegSvr32.exe. For example, to register a DLL called myServer.DLL:
7. Type RegSvr32 c:\windows\system32\myserver.dll, or the precise path of the DLL. If you don't know where the DLL is stored, you can locate it using Explorer, type RegSvr32 in the Run dialog, then select the DLL and drag it to the text box in the Run dialog; the complete path (with no spelling mistakes!) is entered into the Run dialog for you.
Was this article helpful?