In case you would like to use Serial Port ActiveX Control in your own products you have to include sport.dll into your installation procedure.
To install it on client's machine do the following:
Regsp.exe sport.dll
Please, note that you must be located inside the directory where you have copied the file to or specify full path to sport.dll file
Once Serial Port ActiveX Control is registered on target computer you may use its properties and methods in the same way as any other ActiveX Component.
To uninstall it do the following:
Regsp.exe sport.dll /u
To be able to redistribute Serial Port ActiveX Component without any limitations you must own OEM license. Only OEM license grants you with commercial royalty-free redistribution rights.
Redistribution in Internet Explorer
In order to redistrubute Serial Port ActiveX Control on the web for IE you should create .CAB file. CAB file should contain Sport.dll, Sport.inf and SportReg.dll.
| Sport.dll | Serial Port ActiveX Control itself |
| Sport.inf | Installation scenario. Sport.inf sample is located in \examples\ASP\CAB\Sport.inf |
| SportReg.dll | Automatic registration of Serial Port ActiveX Control. \examples\ASP\CAB\SportReg\ |
SportReg.dll is a simple stub for ActiveX whose purpose is solely to register Serial Port ActiveX Control. The source code for given DLL may be found in \examples\ASP\CAB\SportReg\ folder. In order to register Serial Port ActiveX, please, replace “Name” and “0000WJ-222222-00000-QZ04AH-D0DHQP-00000-D5A933-111111-121111-EEEEEE-8D8EFF-000000” values in SportReg.cpp with your registration data. Newly compiled SportReg.dll should be placed in a CAB file. Once the steps above have been successfully completed IE will install and register our ActiveX automatically.
For more information about redistribution in IE please read MSDN page
Quiet registration for OEM license users
This feature is implemented to those developers who generate registration key and name dynamically (for C#.NET, VB.NET, Access, IE). For quiet registration of Serial Port AX you may execute the following command:
regsp.exe sport.dll /i:"Name#code"
Where "Name" is registration name and "code" is registration code. For example:
regsp.exe sport.dll /i:"TEST TEST#xxxxx-W9FC5V-31AXAX-F884EC-WN7G92-X3VXEE-21CFEE-524E94-651198-2A84FA-663C11-xxxxxx"
Register it in OS by executing the command: