Discussion:
IHttpNegotiate and IDownloadManager::Download
(too old to reply)
a***@gmail.com
2009-05-19 19:29:44 UTC
Permalink
Hello!

I implement my custom download manager. In IDownloadManager::Download
I do so:

RegisterBindStatusCallback (pbc, pBSC, &pBSC->m_pPrevCallback, 0);
IStream *pStream = NULL;
hr = pmk->BindToStorage (pbc, NULL, IID_IStream, (void**)&pStream);

pBSC - my own implementation of IBindStatusCallback.
In the same object I implemented IHttpNegotiate interface and
QueryInterface also to return the pointer to it.

But QueryInterface for IHttpNegotiate is never called. Thus
BeginningTransaction and OnResponse never called too.

Can somebody please help to resolve this?
a***@gmail.com
2009-05-19 19:31:28 UTC
Permalink
In the same object - I meant in the object that implements
IBindStatusCallback.
a***@gmail.com
2009-05-19 19:49:12 UTC
Permalink
I also implemented IServiceProvider, but QueryService is not called
for IHttpNegotiate.
j***@gmail.com
2012-11-22 19:25:45 UTC
Permalink
Realise that this is an old question, but you need a call to CreateBindCtx(0, &pbc)

See http://stackoverflow.com/questions/13362922/windows-forms-webbrowswer-control-with-idownloadmanager

Hope that helps

On Tuesday, May 19, 2009 3:29:44 PM UTC-4, Alexander Dyagilev wrote:
> Hello!
>
> I implement my custom download manager. In IDownloadManager::Download
> I do so:
>
> RegisterBindStatusCallback (pbc, pBSC, &pBSC->m_pPrevCallback, 0);
> IStream *pStream = NULL;
> hr = pmk->BindToStorage (pbc, NULL, IID_IStream, (void**)&pStream);
>
> pBSC - my own implementation of IBindStatusCallback.
> In the same object I implemented IHttpNegotiate interface and
> QueryInterface also to return the pointer to it.
>
> But QueryInterface for IHttpNegotiate is never called. Thus
> BeginningTransaction and OnResponse never called too.
>
> Can somebody please help to resolve this?
Loading...