Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when creating object from class?? Weird..
Message
From
04/07/1999 11:16:31
 
 
To
04/07/1999 10:40:20
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00237303
Message ID:
00237311
Views:
12
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform