Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Computer name and CREATEOBJECTEX()
Message
From
31/03/2003 14:07:39
 
 
To
31/03/2003 09:17:49
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00771842
Message ID:
00772100
Views:
25
This is not the case.

The DLL resides on a network drive but is registered on my computer which is called "YOTTA".

As I mentioned earlier, when I run the following commands from my "YOTTA" computer
o1=CREATEOBJECTEX("MyProject.MyOlePublicClass","")
o2=CREATEOBJECTEX("MyProject.MyOlePublicClass","\\YOTTA")
o1 is created but o2 fails with a "class is not registered". It seems I cannot get CREATEOBJECTEX to work from anywhere in the network with anything but microsoft office products. All the objects which I can create locally using CREATEOBJECT, including all of the OLE objects available to me via the VFP7 development environment, return the "Class is not registered" message when I specify the computer name.

There must be something basic I am missing here.

Regards
Geoff Scott




>that's because you have to register the DLL or OCX in the computer you are using it. to register a DLL that resides in remote computer you can execute this command in the Run or Command Window:
>
>regsvr32 \\YOTTA\Path\YourDLL.DLL
May all your weeds be wildflowers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform