Fire event from DLL to calling EXE
Posted on 2006-06-13
I'm a programming newbie that needs a little help with RaiseEvent.
I am calling an ActiveX DLL from an EXE app. The DLL consists of a class and a form. The EXE initiates the class in the DLL which shows the form. My goal is to let the EXE know when the DLL is done.
My class exposes an event called DLLDONE. I am able to trap this event in my EXE when the class (in the dll) raises the event before calling the form.
My trouble comes after the form (in the DLL) is shown by the class: I tried the following > show the form which collects data from the user, performs processing and then calls a public sub the in the class that raises the event. I found that doing it this way the event can be trapped in the form (in the DLL) but not in the exe.
Is there any way I can call the DLL class, show the DLL form and from there raise an event back to the EXE?
Hope I explained properly!