Interface not supported error,求助······
HRESULT hr;
IConnectionPointContainer* pCPC = NULL;
IConnectionPoint* pCP = NULL;
// pElem是一个链接对象指针
hr = pElem->QueryInterface(IID_IConnectionPointContainer, (void**)&pCPC);
// 下面这一句执行后pCP为NULL。
hr = pCPC->FindConnectionPoint(DIID_HTMLElementEvents2, &pCP);
// hr等于80004002,MSDN上面说是“Interface not supported error”
为什么?这段代码在MSDN上面就是这样写的啊。