Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot find class definition error - olepublic class
Message
From
12/03/1999 08:53:59
 
 
To
12/03/1999 08:35:36
Alhad Marathe
Asm Consulting
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00196743
Message ID:
00196751
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform