Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Computer name and CREATEOBJECTEX()
Message
 
À
31/03/2003 09:17:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00771842
Message ID:
00772100
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform