KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a late-bound COM object ( My.COMInterface ) which raises an event when it has finished processing. How do I consume that event from VB6 code? If I was early-binding, I would declare my COM object as WithEvents, and write a normal 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 to do it currently is to write a C/C++ bridge to handle the events, as described in this MSDN article . I'm hoping for a simpler method!
Tags (comma-separated)
Save Edits
Cancel