Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: 14 Mar 2007 06:00:07 -0700,    group: microsoft.public.inetsdk.programming.urlmonikers        back       


IBindstatus::Abort() and OnStopBinding   
Hi,
I am trying to implemented a custom download manager. So far I have
got this:
IDownloadManager::Download() creates a modeless dialog, creates a
IBindStatusCallback object, registers this BSCB object with IMoniker
and calls BindToStorage() function.

Everyting is working fine, but I cannot abort the Download as I
expected. Here is what I'm doing:

First I get a backup pointer to IBinding inside OnStartBinding. When I
need to cancel the download (for example if I could not create a file
inside OnDataAvailable) I call Abort() method on this pointer. This
actually stops binding because neither OnDataAvailable nor OnProgress
is called anymore.

The problem is according to MSDN after calling Abort() only
OnStopBinding will be called. However this is not the case.
OnStopBinding is never called.

I have tried returning S_OK, S_FALSE and E_ABORT from OnDataAvailable.
The return value did not change anything.
date: 14 Mar 2007 06:00:07 -0700   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us