Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when creating object from class?? Weird..
Message
De
04/07/1999 11:16:31
 
 
À
04/07/1999 10:40:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00237303
Message ID:
00237311
Vues:
13
>I have a class named "myclass" in c:\data\classlib.vcx where a.vcx is my class library
>
>then i have this few codes in my prg file to call "myclass"
>
>set path to c:\data\
>set classlib to classlib
>
>frmDetail = createobject("classlib.myclass")
>frmDetail.show
>read events
>
>However, I got this error msg when it tried to create the object from the class, "Error instantiating the object", saying from the Help that "The server for the object is not registered properly, resources are low, or a required .DLL isn’t present."
>
>What does this means?
>Thanks.

Mark pegged it. The way you phrased your CREATEOBJECT is used when calling a COM server. when calling a regular VFP class, just use the name of the class.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform