Tutorial :IConnectionPoint::Advise call returned E_NOTIMPL



  • No MFC
  • No ATL
  • Using Visual C++

While attempting a connection between the connection point and the caller's sink, an E_NOTIMPL (0x80004001) was returned.

Illustrated below:

hresult = pConnection->Advise(                               pSinkUnk,                               &dwAdvise);  


  • How did this occur?



According to MSDN, it states that connection points that only allow one connection can return E_NOTIMPL from its EnumConnections() method. Would it be possible that a connection has already been made for this connection point? Maybe this particular implementation returns E_NOTIMPL from Advise() in this case as well?


That sounds to me like the connection and/or the object that you want the events of doesn't implement the events interface that you are expecting. If that's your object, maybe verify that your QueryInterface() returns an instance of your object for that interface?

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »