Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM/DCOM (Remote Automation)
Message
From
20/10/2000 00:32:11
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00431523
Message ID:
00431970
Views:
7
>>>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:
>>
>>That's not entirely true. You can use a DCOM object with CREATEOBJECT as long as that object is set up on the client (via DCOMCNFG) to run on the server machine.
>
>Cool! However, I think it will be more clear what you are doing in code if you use the CREATEOBJECTEX function.

Well, the two functions really serve two different purposes. If you set up the object to run remotely via DCOMCNFG, you no longer have to hardcode the server machine name. It effectively ensure that _any_ time the object is invoked, it will be invoked on the right machine.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform