Afternoon,
Just learning how to create ActiveX dlls and need a bit of help.
I have a project which contains only a prg file with the following:
*********************************************
DEFINE CLASS myclass as custom olepublic
FUNCTION Myfunc (cTextin as String)
ctextout="Hello"+ctextin
RETURN ctextout
ENDFUNC
enddefine
************************************************
I can then build the project into a single thread dll - named mydll.dll
from a seperate form I have a command button with the code:
********************
DECLARE string Myfunc IN "mydll.dll";
string cTextin
creturn=Myfunc("monkey"
MESSAGEBOX(creturn)
********************
The error i get is "Entry point Myfunc not found in mydll"
What would the entry point be? The class or the function?
This is the first time i have used define class programmatically so that may also contain errors.
Help much appreciated.
Monkey
Just learning how to create ActiveX dlls and need a bit of help.
I have a project which contains only a prg file with the following:
*********************************************
DEFINE CLASS myclass as custom olepublic
FUNCTION Myfunc (cTextin as String)
ctextout="Hello"+ctextin
RETURN ctextout
ENDFUNC
enddefine
************************************************
I can then build the project into a single thread dll - named mydll.dll
from a seperate form I have a command button with the code:
********************
DECLARE string Myfunc IN "mydll.dll";
string cTextin
creturn=Myfunc("monkey"
MESSAGEBOX(creturn)
********************
The error i get is "Entry point Myfunc not found in mydll"
What would the entry point be? The class or the function?
This is the first time i have used define class programmatically so that may also contain errors.
Help much appreciated.
Monkey