How do you do asynchronous processing in C#
- From: "GS" <nospam@xxxxxxxxxxx>
- Date: Wed, 8 Feb 2006 15:44:08 -0600
Hello,
I'm trying to implement asynchronous call to COM interface below and having trouble understanding what C# code will allow me to update progress bar while call is running.
I have an object called MyDownloader which has a method of BeginDownload below, I need to periodically update main program about progress and when call is completed to return back to processing.
Any sample code?
HRESULT BeginDownload(
IUnknown* onProgressChanged,
IUnknown* onCompleted,
VARIANT state,
IDownloadJob** retval
);
Parameters
onProgressChanged
[in] An IDownloadProgressChangedCallback interface that is called periodically for download progress changes before completion.
onCompleted
[in] An IDownloadCompletedCallback interface (C++/COM) that is called when an asynchronous download operation is complete.
state
[in] The caller-specific state that AsyncState Property of IDownloadJob returns.
retval
[out] An IDownloadJob interface that contains the properties and methods that are available to a download operation that has started.
- Prev by Date: Re: BinaryWriter/Reader big endian
- Next by Date: Re: warning CS0168: The variable 'el' is declared but never used?
- Previous by thread: iTunes events do not fire
- Next by thread: static functions variables
- Index(es):
Relevant Pages
|