Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About CREATEOBJECTEX()
Message
From
25/06/2003 13:06:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/06/2003 11:45:40
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00803826
Message ID:
00803877
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform