Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when creating object from class?? Weird..
Message
 
 
To
04/07/1999 10:40:20
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00237303
Message ID:
00237310
Views:
10
C.D.

You have everything right, but one small detail. You don't need the classlib. part of your createobject.

>frmDetail = createobject("classlib.myclass")

frmDetail = createobject("myclass")

>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."

This means that VFP is looking for a COM style of object registered with the system. It's because you used classlib.myclass which means a COM ibject to Windows.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform