Bağlantı noktası örnek

Bu örnek destekleyen bir nesne IPropertyNotifySink giden bir arabirimle

cConnect sınıfı: nbsp; Genel CComObjectRootEx <CComObjectThreadModel>,
   Genel CComCoClass < CConnect & CLSID_CConnect >,
   Genel IConnectionPointContainerImpl <CConnect>,
   Genel IConnectionPointImpl < CConnect & IID_IPropertyNotifySink >
{
public:
   ...
   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()

...
}

&Notnbsp;IPropertyNotifySink giden bir arabirim belirtirken, sınıf IPropertyNotifySinkCP IConnectionPointImplyerine kullanabilirsiniz. Örneğin:

cConnect sınıfı: nbsp; Genel CComObjectRootEx <CComObjectThreadModel>,
   Genel CComCoClass < CConnect & CLSID_CConnect >,
   Genel IConnectionPointContainerImpl <CConnect>,
   Genel IPropertyNotifySinkCP <CConnect>
{
   ...
}

Index