IConnectionPoint::Advise call returned E_NOTIMPL

0

Note:

  • 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);

Question:

  • How did this occur?

Regards

visual-c++
com
asked on Stack Overflow Jan 22, 2009 by Aaron

2 Answers

2

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?

answered on Stack Overflow Jan 25, 2009 by Andy
0

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?

answered on Stack Overflow Jan 22, 2009 by Andy

User contributions licensed under CC BY-SA 3.0