If you know the ProgId then an easier way is:
o = CREATEOBJECT("wcDemo.wcDemoServer")
? COMCLASSINFO(o,4)
assuming the server is registered.
+++ Rick ---
>Thanks.
>
>>
>>You can look it up in the registry. For example, assuming you have a COM object with the PROGID MyCom.Server, you'll find the CLSID in HKEY_CLASSES_ROOT\MyCom.Server\CLSID.