>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.