Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot find class definition error - olepublic class
Message
From
12/03/1999 09:04:22
Alhad Marathe
Asm Consulting
Mumbai, India
 
 
To
12/03/1999 08:53:59
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00196743
Message ID:
00196755
Views:
26
It worked. Thanks

Alhad

>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
Only direct experience is Knowledge;
Everything else is just Information.
Previous
Reply
Map
View

Click here to load this message in the networking platform