>That does not work!
>I try on another server. The COM is registered and AutMgr32 is running.
>But this time at the first command line:
>obj=createobject("GetServerDateTime.cSQLDT")
>I got the message "RPC server is unavailable".
>
>Someone knows the meaning...?
You are using the syntax for COM.
If it is DCOM, you are supposed to call it with CREATEOBJECTEX() function
with server name, using ClassId or ProgID:
obj = createobjectEX("{2E341S03-11FC-4760-8E9D-CFCBE1655F13}", ,"\\MYSERVERNAME")
obj=createobjectEX("GetServerDateTime.cSQLDT", ,"\\MYSERVERNAME")
or name your server by IP Address:
obj = createobjectEX("GetServerDateTime.cSQLDT", "192.168.0.3")
Also probable reason of "RPC server is unavailable" message is wrong server name specified.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison