Trying to understand what is IConnectionPointand how it relates to IConnectionPointContainer,IEnumConnectionPoints,IEnumConnectionsand EventHandling .
Read the article numbers from MSDN and CodeProject , which explain other methods, such as: QueryInterface()and others.
I cannot understand how all these things ( IConnectionPointContainer,IEnumConnectionPoints,IEnumConnections) are interconnected with eachother and event handling.
I just want to create a simpleClient that will raise an event in a COM object.
If there are any articles or code snippets that can explain how things are related to each other using a simple and small code snippet, it will be helpful.
It is worth noting that I recently started development in C, a beginner.
Edit @sharptooth
For the string " typically your client will receive events and the COM object will trigger those events."
I knew of many articles: "When we use the connection point at this point
the client exposes a set of methods that the server uses.
I simply outline part of the TechRepublich article :
Client server and connection source
Thus, the main difference between the usual programming with COM in the standard client-server system and the use of connection points is that in the standard case the client-server server provides a list of methods used by the client, and at the case connection point, the client provides a set of methods, which the server uses.
source
share