Hi
I am trying to figure out how the IMPLEMENTS clause works and how to use it.
I created a new project which contained a single OLEPublic class ('app')based on the 'Custom' class. I added one method into which I added code for a messagebox. I then compiled my project as a multi-threaded dll.
I then tried the following program
CD GETDIR()
PUBLIC oMyClass
oMyClass=CREATEOBJECT('myclass')
n=1
RELEASE oMyclass
DEFINE CLASS myclass as Custom
IMPLEMENTS app IN 'dll.dll'
n1=1
l1=.T.
d1=DATE()
FUNCTION anothertest
MESSAGEBOX('Anothertest')
ENDFUNC
ENDDEFINE
when I run this I get the message
Class cannot be instantiated because Member 'APP_get_ClassLibrary' does not exist
I have no doubt that it is correct because the custom class does not have such a function.
Can I create my own class and use the implements?
Can someone point me in the right direction of how this works.
Regards
Geoff Scott
May all your weeds be wildflowers