Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateObject() a COM Server in another PC
Message
From
09/04/2001 23:50:48
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00493764
Message ID:
00493891
Views:
16
>>>>The question is: How I instantiate (CreateObject) the COM server from another machine?
>>>
>>>Put the server into MTS/COM+, and CREATEOBJECTEX("myCOMserver.myclass", "MyServerComputerName").
>>
>>Is this better than creating a Client setup from COM+ and then using CREATEOBJECT()?
>
>Hey guys, I've created a COM object that reads the registry setting of HKEY_LOCAL_USER. Now, the question. If the object is registered on a different machine, and the client calls it with createobject, which registry will it read? The one on the client's machine, or on the machine where it's registered?

The machine it executes on, in the context that it executes in. If you use DCOM, the client's registry isn't visible to the remote server.
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