Registration maps the ProgID of the application to a unique CLSID, so that you can create instances of the application by name, rather than by CLSID. For example, registering Microsoft Excel associates a CLSID with the ProgID Excel.Application
. In Visual Basic, you use the ProgID to create an instance of the application as follows:
SET xl = CreateObject("Excel.Application")
By passing the ProgID to CLSIDFromProgID, you can get the corresponding CLSID for use in CoCreateInstance. Only applications that will be used in this way need to be registered.
The registration file uses the following syntax for the application:
\ AppName.ObjectName[.VersionNumber] = human_readable_string
\ AppName.ObjectName\CLSID = {UUID}