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:
00294266
Views:
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.
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