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>

...

Upgrading from SRP.OCX

Upgrading from SRP.OCX to the new SRP OLE Controls.

...

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

...


See the Installation guide above for more details on registering OCX files.

...

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

...


The reason order is so important is quite simple when you consider that the SRP.OCX contains the same controls (albeit older versions) as the new OCX files. When you register the SRP.OCX file, it's like telling Windows that the SRP Button Control, SRP EditTable Control, SRP ReportTable Control, etc. are all located in SRP.OCX. When you register the SRPReportTable.ocx file, it's like telling Windows that the SRP ReportTable Control is location in SRPReportTable.ocx. So, if you register the SRP.OCX after registering the SRPReportTable.ocx, then the older version of the SRPReportTable.ocx is the one registered in the system.