Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To register an OCX file, simply run the following command from a DOS prompt or from the Run window:

 

Code Block
regsvr32 <ocxfile>

The regsvr32 command is built into Windows. It's sole purpose is to register and unregister self-registering DLLs. OCX files are considered self-registering DLLs, even though their extensions are different. Here's an example on how to register the SRP Core Controls form an OpenInsight directory:

 

Code Block
regsvr32 C:\Revsoft\Oinsight\SRPCore.ocx

 

If you have more than one OCX file, you must call regsvr32 for each one.

...

To uninstall the SRP OLE Controls, you first need to unregister each OCX file. You can use the regsvr32 command. The syntax for unregistering your files is:

 

Code Block
regsvr32 -u <ocxfile>

...

If you plan to upgrade entirely to the new SRP OLE Controls, then upgrading is fairly simple. First, unregister the current SRP.OCX file using the following command:

 

Code Block
regsvr32 -u <path>\SRP.OCX


Delete the SRP.OCX and register all the new OCX files individually. For example, register the SRP EditTable Control using:

 

Code Block
regsvr32 <path>\SRPEditTable.ocx

...

Always make sure SRP.OCX is registered before any of the new SRP OLE Controls are registered. For example, let's say you are upgrading only the SRP ReportTable Control. When registering your OCX files, do this:

 

Code Block
regsvr32 <path>\SRP.OCX 
regsvr32 <path>\SRPReportTable.ocx

...