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: 16 Feb 2007 17:03:02 -0800,    group: microsoft.public.inetsdk.programming.urlmonikers        back       


IXMLHttpRequest and OnDataAvailable   
Hi

I have to implement Asynchronous data download using IXMLHttpRequest.
Please let me know if it is possible and how do I implement
OnDataAvailable.

How does IXMLHttpRequest will get hooked to OnDataAvailable?

The application that has been develeoped is ATL control for drag and
drop attachement from Mail Server.

When the data is being downloaded from the server it should download
in chunks of data as and when it is available.

The data will be taken in IStream using
IXMLHttpRequest::get_responseStream currently it uses
IXMLHttpRequest::get_responseBody(VARIANT)


Please help and suggest, please send code snippets and implementation
details.

Thanks
Alpana Dhole
date: 16 Feb 2007 17:03:02 -0800   author:   unknown

Re: IXMLHttpRequest and OnDataAvailable   
wrote in message
news:1171674182.598411.13400@h3g2000cwc.googlegroups.com
> I have to implement Asynchronous data download using IXMLHttpRequest.

Does it have to be IXMLHttpRequest? See UrlOpenPullStream. Implementing 
IBindStatusCallback will give you fine control over download process.

> The application that has been develeoped is ATL control for drag and
> drop attachement from Mail Server.

Since you are using ATL, look at CBindStatusCallback. It's a rather 
crude implementation of IBindStatusCallback. Studying its source code 
might be useful.
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Fri, 16 Feb 2007 20:22:02 -0500   author:   Igor Tandetnik

Google
 
Web ureader.com


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