I want to write an ActiveX control which can call some self-defined subs or functions in vb,I tried, but when never I use the control in vb,it raise the error "automation error".
Here's my code:
TYPEDEF void (CALLBACK* MYPROC)(LPTSTR);
//one method of my control
BOOL DoSomething(long FuncAdd)
//sub in a module
sub testsub(a as string)
//in a form
mycontrol.DoSomething AddressOf testsub
Could you give me some suggestions?