Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot find class definition error - olepublic class
Message
De
12/03/1999 08:53:59
 
 
À
12/03/1999 08:35:36
Alhad Marathe
Asm Consulting
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00196743
Message ID:
00196751
Vues:
31
When instanciating a COM object, you have to specify the name of the file and the name of the class, ie CreateObject("PTAX.MyClassName") (assuming that you have a class named MyClassName)

HTH

>I created an Olepublic class from a prg by using
>DEFINE CLASS ptax as Custom olepublic
>
>I addded the .prg to a project and built a dll by name ptax.dll
>However if I try to create an object based on this class with the following command,
>
>x=createobject("PTAX")
>
>I get an error "CLASS DEFINITION PTAX NOT FOUND"
>
>What am I doing wrong?. I find that the files ptax.dll, ptax.tlb and ptax.vbr are created. I am using VFP 5.0
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform