VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



events for late-bound objects

by Arne Elster (23 Submissions)
Category: OLE/COM/DCOM/Active-X
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

VB has good event handling functions.
The great WithEvents and VBControlExtender.
The bad thing about them is, WithEvents can only be used for early binding, and the VBControlExtender is only for controls.
So what to do in case you have an object like "InternetExplorer.Application" and want to catch its "Stop" event?
Right, you guessed it: grapple with some nasty COM interfaces :)
In this last part of my low level COM project I want to show you how to use IConnectionPoint to recieve events from objects.
Oh, and you may see some equalities between this submission and the event collection by Edanmo.
Edanmo has some functions in there I really was frightened to code. ;)

Side Effects
don't hit that stop button when you're inside the event sink!

Rate events for late-bound objects

Download events for late-bound objects

Download events for late-bound objects (7 KB)

events for late-bound objects Comments

No comments have been posted about events for late-bound objects. Why not be the first to post a comment about events for late-bound objects.

Post your comment

Subject:
Message:
0/1000 characters