Program ID (-PROGID) command for COM
Use the Program ID adapter command (-PROGID) to override the Class ID (CLSID) and specify a different component.
-PROGID progid
- Option
- Description
- progid
- The program ID of the component to use overrides the CLSID and specifies a different component.
For example, to override the program ID Nxf.Nxf.1:
-PROGID Nxf.Nxf.1
As part of the type tree importer process, the Class ID (CLSID) of the component to use is stored in the type tree. This CLSID is then passed to the COM Automation adapter at run time to specify the component to use.
An example of where this option could be used would be in the case where you have a number of different components all implementing the same interface and you want to be able to select which component to use at map run time.
The different components might access different files or systems or might do something altogether different; it does not matter to the adapter, provided that the interface has the same Dispatch IDs (DISPIDs), method names, parameters, and so on.