Richard
asked on
VB6 WithEvents from a DLL
Hi All,
I'm working in VB6 (just to set the view).
I'm creating an ActiveX Dll.
I have an OCX which has various events. The OCX needs to be on a form for it to do anything.
I have a class which isolates the OCX from the rest of the world - all of the OCX properties are supplied by passing through the class
So far, this all works ok.
Where I'm running into problems is trying to get the events from the OCX out of the DLL to be used by the main program.
I have looked and have not been able to find anything. There are lots of examples showing the WithEvents, but none from a DLL.
Maybe what I want to do isn't possible.
I'm working in VB6 (just to set the view).
I'm creating an ActiveX Dll.
I have an OCX which has various events. The OCX needs to be on a form for it to do anything.
I have a class which isolates the OCX from the rest of the world - all of the OCX properties are supplied by passing through the class
So far, this all works ok.
Where I'm running into problems is trying to get the events from the OCX out of the DLL to be used by the main program.
I have looked and have not been able to find anything. There are lots of examples showing the WithEvents, but none from a DLL.
Maybe what I want to do isn't possible.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for pointing that out to me. It should have been obvious to me.
Thanks again.