Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with CREATEOBJECTEX()
Message
From
09/12/1999 10:54:06
 
 
To
09/12/1999 09:29:21
Kenneth Downs
Secure Data Software, Inc.
New York, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00300946
Message ID:
00301023
Views:
32
>Folks,
>
>I am hoping for a step-by-step on implementing a COM Server on another machine. I get the impression that it is supposed to be relatively simple to do it the first time. I understand that a full-fledged solution involves MTS and many other factors, but today's challenge is just to instantiate an object on another machine and run some tests.
>
>Can anyone tell me where I am going wrong with these steps:
>1. Create the class OLE Public
>2. Compile an executable
>3. Put the executable on the desired server, register it (MyExe /regserver)
>4. At the command window of the client, execute CREATEOBJECTEX("myEXEname.MyClassName","ThatOtherComputer")
>
>I am consistently getting "Access is Denied." Cannot find this anywhere in the docs. Both server and client are NT 4.0.
>
>The fox docs are also a little tough, since they discuss Remote Automation, not DCOM per se.
>
>Any help at all, TIA...

Kenneth,

You have to run DCOMCNFG on the 'server/remote' machine and:

1. Make sure DCOM is enabled.
2. Make sure that the ID you are logged in as has permission to the DCOM object.

For a pretty good step by step see www.west-wind.com for an article called 'Internet Enable your VFP Aps' which discusses this topic!

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform