Trying to understand What is IConnectionPoint
and how this is connected to IConnectionPointContainer,IEnumConnectionPoints,IEnumConnections
and EventHandling.
Read the artcicles from MSDN and CodeProject which is explaining a about other methods like: QueryInterface()
and otherthings.
I am unable to figure out how all these things(IConnectionPointContainer,IEnumConnectionPoints,IEnumConnections
) are interconnected with eachother and event Handling.
I just want to create a simpleClient which Will trigger an event in COM object.
If there are any articles or code snippet that can explain how things are related to each other with simple and small chunk of code will be helpfull.
Worth mentioning that I have started development in C recently, a beginner.
Edit @sharptooth
For the Line "typically your client will receive events and the COM object will trigger those events
. "
From many articles, What I understood is When we use connection points at that point,
the client exposes a set of methods that the server uses
.
I am just Outlining portion of the article from TechRepublich:
Client server vs. sink source
So the main difference between normal programming with COM in a standard client-server system and using connection points is that in the standard client-server case, the server exposes a list of methods that the client employs, and in the connection point case, the client exposes a set of methods that the server uses.