Este ejemplo muestra un objeto que admita IPropertyNotifySink como interfaz saliente
clase CConnect: nbsp; CComObjectRootEx público <CComObjectThreadModel>,
CComCoClass públicos < CConnect & CLSID_CConnect >,
IConnectionPointContainerImpl público <CConnect>,
público IConnectionPointImpl < CConnect & IID_IPropertyNotifySink >
{
público:
...
BEGIN_COM_MAP(CConnect)
COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer)
END_COM_MAP()
BEGIN_CONNECTION_POINT_MAP(CConnect)
CONNECTION_POINT_ENTRY(IID_IPropertyNotifySink)
END_CONNECTION_POINT_MAP()
...
}
&Notanbsp; Cuando se especifica IPropertyNotifySink como interfaz de salida, puede utilizar la clase IPropertyNotifySinkCP en lugar de IConnectionPointImpl. Por ejemplo:
clase CConnect: nbsp; CComObjectRootEx público <CComObjectThreadModel>,
CComCoClass públicos < CConnect & CLSID_CConnect >,
IConnectionPointContainerImpl público <CConnect>,
IPropertyNotifySinkCP pública <CConnect>
{
...
}