Connection Point Example

In order to demonstrate how connection points are used, I will use ATL's I0ConnectionPointContainerImpl class. This implementation provides most of the functionality that is necessary to work with connection points from the server-side point of view.

The demonstration consists of three components: an event server (source) that will trigger events, an event sink that will capture events, and a control program. The event sink and control program will reside in the client process, and the event source will reside in the server process. This best simulates the event sink–event source model that is typical in most programs. This example is available on the CD-ROM in the Chapter06 directory in the ComEvents subdirectory.

Get COM+ Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.