Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreateObjectEX not
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00559579
Message ID:
00559615
Vues:
19
This message has been marked as the solution to the initial question of the thread.
Hi!

Yes, you can, however, you require to register that class under DCOM (using DCOM manager) on the server machine by giving proper access rights to access that COM object remotely. Or just register COM object under MTS/COM+, but this is not required.

>Hi all,
>
>I created a VFP7 com component to query some SQL Server tables and return the result as an XML string using XMLTOCursor(). When the client and the component are on the same computer it works fine (really slick actually).
>
>When I try to call over the network using CreateObjectEX() it doesn't work. I didn't register the component on the client computer so I'm using the class id instead of the progid. RPC locator service is running on both computers.
>
>
>oSrvr = createobjectex( "{ my_guid_here }", "\\home" )
>
>
>or
>
>
>oSrvr = createobjectex( "{ my_guid_here }", "192.168.1.100" )
>
>
>both give "OLE error code 0x80040154: Class not registered."
>
>Can I actually call the component using the class id without registering it on the client?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform