Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About CREATEOBJECTEX()
Message
De
25/06/2003 13:06:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/06/2003 11:45:40
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00803826
Message ID:
00803877
Vues:
10
>Hi,
>I read a thread before and mentioned that CREATEOBJECTEX() can initiate OLE OBJECT on remote machine (just like DCOM) without need to register on workstation machine.
>I tried to build a simple COM EXE on my server machine, I test it using CREATEOBJECT() and it works fine.
>I use
>CREATEOBJECTEX("mylib.myclass", "192.168.0.1")
>or
>CREATEOBJECTEX("mylib.myclass", "\\myserver")
>
>to initiate the OLE OBJECT I created in my server, but VFP return "invalid class string". It return control very fast. (Usually it may take few secs if initiate remote COM). What did I do wrongly?
>
>Thank you

John,
From the help for CreateObjectEx :

"cCLSID | cPROGID
Specifies the CLSID (Class Identifier) or PROGID (Programmatic Identifier) for the COM object to instantiate. If you include a CLSID, the COM object must be registered on the remote server you specify with cComputerName. If you include a PROGID, the COM object must be registered on both the your local computer and the remote computer you specify with cComputerName. Attempting to use a PROGID without first registering the server on your local computer will generate the OLE error Code 0x800401f3, "Invalid Class String." "

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform