>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