
05-20-2007, 06:58 PM
|
| Super Moderator | | Join Date: Feb 2007
Posts: 142
Rep Power: 2 | |
| Registering ActiveX DLLs and OCXs There are various ways of registering a ActiveX DLL/OCX on your system, all of which ultimately do the same thing, which is to call the DLLRegisterServer method exposed by all in-process ActiveX components. - Run Regsvr32.exe
To use it, just click Start-Run, type regsvr32 and then drag the file you want to register from Explorer onto the Start-Run box.
Click OK to do the registration. If it succeeds, there will be a message box saying registration succeeded, otherwise the message box will tell you it failed with some uninterpretable COM error code. If it fails, you have a bad VB runtime or a corrupt file, or you have got the file name wrong.  Regsvr32 has a number of command line options which let you control what it does. By default it registers a control or DLL (Dynamic Link Library) and gives a message box saying what it has done. The following command options let you modify this behavior: - /u - Unregister server.
- /s - Silent; display no message boxes
- /c - Console output
You can use these options when writing simple install scripts in batch files.  |