I have a late bound COM object ( My.COMInterface ) that raises an event when it has finished processing. How can I use this event from VB6 code?
If I were an early binding, I would declare my COM object as WithEvents and write a regular event handler. How can I achieve this using late binding?
Current Code:
Dim comObject as Object 'Function to launch Process. Public Function LaunchProcess() As Boolean Set comObject = CreateObject("My.COMInterface") LaunchProcess= comObject.CallProcess() ' Once this process has finished, it will raise an event ' called ProcessingFinished - how do I consume it? End Function
The only way I know this at this time is to write a C / C ++ bridge for handling events, as described in this MSDN article . I hope for an easier way!
event-handling vb6 late-binding
RB.
source share