>I want to activate a remote OLE server by using the CREATEOBJECTEX function. Though the server is installed and registered i can't get it work.
>
>Ive tried it using the Progid:
>
>x=Createobjectex("maintain.maintain","\\NTW40_TAX")
>
>and by using the CLSID
>
>x=Createobjectex("{5A3F93B0-1A4D-11D3-9D0B-00AA00AEC430}","\\NTW40_TAX")
>
>But both of the commands give me the error "Class not registered"
>
>Any thoughts or hints ?
>
>Walter
I got this to work, and it wasn't simple. There are several tricks. First, you have to make sure DCOM is installed an turned on on both computers... Win 98 and NT have it installed by default, I think you have to install it seperatly with Win95.
Once you are sure it is installed, RUN dcomcnfg... Go to the second tab and make sure "Enable DCOM on this computer is check on."
Also, I think for PC name, you don't use the \\, jut put the PC name... not sure if this uses DNS or NetBios names... so, you may want to try the IP address.
For more info, Rick Strahl has section in his free article about internet enabling applications... the DCOM section talks about accessing over the internet, but the same things apploy for Intranet. Here is the URL:
http://www.west-wind.com/presentations/internetenabling/InternetEnabling.htmGood luck!
BOb
Then, I would start on the remote computer using VFP to see if you can instantiate your COM object locally using the ClassID...
oX = Createobjectex("{5A3F93B0-1A4D-11D3-9D0B-00AA00AEC430}","\\NTW40_TAX")