Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining CLSID & Computer for out-of-process server
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00294258
Message ID:
00294428
Views:
15
>>>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.
>

Where, other than the registry, can you look? You could maintain a VFP table somewhere with the information, I suppose, but there's no way to find out anything about what servers might be available via DCOM if they aren't running and haven't some sort of central resource publishing their locations and CLSIDs, and then you have to know which CLSID does what, which means looking somewhere, like maybe the registry, or a VFP table publishing information about...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform