Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining CLSID & Computer for out-of-process server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00294258
Message ID:
00294339
Vues:
23
>>I would like to be able to have the CREATEOBJECTEX() function get it's parameters, cCLSID & cComputer, at run-time. The development environment is a standalone PC while the production version is file/server based....but, there are out-of-process automation servers being developed too.
>>
>
>You can get the CLSID for a given ProgID by following the chain of registry entries from HKEY_CLASSES_ROOT\ProgID; you'd need to examine the registry key hierarchy for the CLSID to get the installed server name. This won't help if you don't know the ProgID or haven't registered a remote server for the CLSID on the local machine...
>
>FWIW, you can use the ProgID in place of the CLSID if the server name is known, the ProgID is only usable if the server is registered both locally and remotely.

Hi Ed,

Thanks. I know about the use of ProgID. The key here is I don't want to examine the registry. I want the application to be able to get that info at run-time. This way, if the IDs are changed or for whatever reason, the correct CLSID is available.

Steve
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform