That saves the content of the Moniker object itself and has nothing to do with whatever the Moniker points to. Downloading a file is quite a bit more involved.
Ciao, Dee -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Vermeersch, Scott M. Sent: Monday, February 09, 2004 2:14 PM To: '[EMAIL PROTECTED]' Subject: RE: [msvc] IDownloadManager I use CreateURLMoniker to create a new IMoniker from the IMoniker IE is sending, but the URL Display Name is still the same. Ultimately I want to download the file to disk and I notice the IMoniker has a Save method. Would it be possible to use the IMoniker Save method to download the file, and is there an example of this somewhere? --Scott -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ehsan Akhgari Sent: Friday, February 06, 2004 11:36 AM To: [EMAIL PROTECTED] Subject: RE: [msvc] IDownloadManager > I am trying to write a simple Download Manager for Internet Explorer > using the IDownloadManager interface as described in MSDN. > > http://msdn.microsoft.com/library/default.asp?url=/workshop/br owser/ext/reference/ifaces/idownloadmanager/download.asp > > STDMETHODIMP CDownloadManager::Download(IMoniker* pmk, > IBindCtx* pbc, > DWORD dwBindVerb, > LONG grfBINDF, > BINDINFO* pBindInfo, > LPCOLESTR pszHeaders, > LPCOLESTR pszRedir, > UINT uiCP) > { > ... > // Get URL > pmk->GetDisplayName( pbc, NULL, &pszW ); > ... > } > > I am able to get the URL of the file and then use InternetSesion to > download the file. A problem arises when the file is being sent from > sites such as Hotmail. The URL contains extra information similar to > the following. > > http://64.4.22.250/cgi-bin/getmsg/test.doc?curmbox=F143938599& > a=9028e9ed348aeb1e2152cc3450e09d65&msg=MSG1074019584.26&start= > 306925&len=33024&mimepart=5&disk=64.4.22.68_d1453&login=cord02 > &domain=hotmail%2ecom&_lang=EN&country=US > > Does anyone know of a way to connect to the server and download the > file when the URL contains the extra information? Why can't you pass the full URL (including GET variables) to CreateUrlMoniker( )? ------------- Ehsan Akhgari List Owner: [EMAIL PROTECTED] [ Email: [EMAIL PROTECTED] ] [ WWW: http://www.beginthread.com/Ehsan ] You had not yet sought yourselves: then you found me. So do all believers; thus all belief matters so little. -Thus Spoke Zarathustra, F. W. Nietzsche _______________________________________________ msvc mailing list [EMAIL PROTECTED] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive. _______________________________________________ msvc mailing list [EMAIL PROTECTED] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
