[windev] Downloading data files with Visual C++ MFC and cache issue

Serge Wautier serge at wautier.net
Wed May 5 07:41:59 GMT 2010


A quick look at the docs reveals this flag:

INTERNET_FLAG_RELOAD: Get the data from the wire even if it is locally
cached


Serge.
http://www.apptranslator.com



> -----Original Message-----
> From: windev-bounces at windev.org [mailto:windev-bounces at windev.org] On
> Behalf Of truckleaj-windev at yahoo.co.uk
> Sent: mercredi 5 mai 2010 9:35
> To: windev at windev.org
> Subject: [windev] Downloading data files with Visual C++ MFC and cache
> issue
> 
> VC++ 2005 MFC Dialog
> 
> Dear Windev Guys and Gals
> 
> I have this code:
> 
>     if( InternetGoOnline( (LPTSTR)(LPCTSTR)strURL, GetSafeHwnd(), 0) )
>     {
>         TRY
>         {
>             // Our session should already be open
>             // Try to open up Internet session to my URL
>             pWebFile = (CHttpFile*)iSession.OpenURL(strURL, 1,
>                 INTERNET_FLAG_TRANSFER_ASCII |
> INTERNET_FLAG_DONT_CACHE);
> 
>             if(pWebFile != NULL)
>             {
>                 pWebFile->QueryInfoStatusCode(dwStatus);
> 
> 
> What I am finding is that for some of my users the file that is
> "downloaded" appears to be the cached version. So sometimes the
> datafile being read is not actually the one held at my URL. I have to
> get them to clear their cache before it will work correctly.
> 
> Are there any adjustments I can make to force it to download the latest
> file? A bit like CTRL + F5?
> 
> Thank you.
> 
> Andrew
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.windev.org/pipermail/windev/attachments/20100505/8aadd47d/
> attachment.htm
> --
> Windev mailing list at Windev at windev.org
> 
> Lost your password?  Need to unsubscribe or change your delivery
> options?
> Go to http://lists.windev.org/mailman/listinfo/windev
> --
> Search the Windev Archives - www.windev.org



More information about the Windev mailing list