Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP7 COM called from VFP6 Problem
Message
De
15/02/2001 10:05:02
 
 
À
15/02/2001 01:48:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00476163
Message ID:
00476272
Vues:
21
>Dear all,
>
>I have a simple COM created in VFP7 and called from VFP6. I have the following code and error. Is this a bug in VFP7? What gives? Thanks.
>
>***FROM VFP6
>
>oObj = CREATEOBJECTEX("Sample.sampleclass", "myserverpc")
>oObj.echostring("Testing") && This statement works
>oObj.addnumbers(2,3) && This statement bombs out
> ****"OLE Error code:0x80020006:Unknown name
>oObj.substractnumbers(3,2) && Same error as above.


Are you sure you're not dealing with a versioning problem? I would start by deleting all copies of the server on the local and remote machines, and recompiling. It sounds to me like the server you are actually instanciating does not have those methods available. Do they show up in Intellisense in VFP7, when instanciated the same way?
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform