Bug in atlhost.h
-
I don't know where to report this bug, so may be this is the right place... If you set an
IDocHostUIHandlerDispatch
-interface theFilterDataObject
-Method of CAxHostWindow does NOT query theIDataObject
-interface from the returnedIUnknown
, instead it callsQueryInterface
on it self:if (m_spIDocHostUIHandlerDispatch != NULL)
{
CComPtr spUnk;
hr = m_spIDocHostUIHandlerDispatch->FilterDataObject(pDO, &spUnk);
if (spUnk)
hr = QueryInterface(__uuidof(IDataObject), (void**)ppDORet); // self!!
if (FAILED(hr) || *ppDORet == NULL)
hr = S_FALSE;
}So the line
hr = QueryInterface(__uuidof(IDataObject), (void**)ppDORet);
should be more like:
hr = **spUnk->**QueryInterface(__uuidof(IDataObject), (void**)ppDORet);
Does anyone know where to report this bug? Greetings, imagiro
-
I don't know where to report this bug, so may be this is the right place... If you set an
IDocHostUIHandlerDispatch
-interface theFilterDataObject
-Method of CAxHostWindow does NOT query theIDataObject
-interface from the returnedIUnknown
, instead it callsQueryInterface
on it self:if (m_spIDocHostUIHandlerDispatch != NULL)
{
CComPtr spUnk;
hr = m_spIDocHostUIHandlerDispatch->FilterDataObject(pDO, &spUnk);
if (spUnk)
hr = QueryInterface(__uuidof(IDataObject), (void**)ppDORet); // self!!
if (FAILED(hr) || *ppDORet == NULL)
hr = S_FALSE;
}So the line
hr = QueryInterface(__uuidof(IDataObject), (void**)ppDORet);
should be more like:
hr = **spUnk->**QueryInterface(__uuidof(IDataObject), (void**)ppDORet);
Does anyone know where to report this bug? Greetings, imagiro
connect.microsoft.com[^] is the place to report bugs, or post in a MS support forum.
--Mike-- Visual C++ MVP :cool: LINKS~! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ "That's what's great about doing user interface work. No matter what you do, people will say that what you did was idiotic." -- Raymond Chen
-
connect.microsoft.com[^] is the place to report bugs, or post in a MS support forum.
--Mike-- Visual C++ MVP :cool: LINKS~! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ "That's what's great about doing user interface work. No matter what you do, people will say that what you did was idiotic." -- Raymond Chen