Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Caching(?) occuring when using CFtpConnection

Posted on 1998-06-22
1
Medium Priority
?
337 Views
Last Modified: 2013-11-20
Hi,

Iv got a basic ftp client that downloads files using CFtpConnection. Everything works great, except when I transfer two files of the same name but different sizes. The second file does not overwrite the first one, but appears to retrieve it from a cache (in wininet.dll perhaps?). When I shutdown the app and restart it again it does the transfer properly though. Iv tried creating my CInternetSession object with the INTERNET_FLAG_DONT_CACHE flag, but that doesn't help either. Could anyone help?

Thanx
Johan
0
Comment
Question by:johand
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 800 total points
ID: 1318276
INTERNET_FLAG_DONT_CACHE means that the request should write to the cache. If the cache already has the requested item, the library will still resolve the reference from cache.

To ask WININET to get the item from online, even if it is in the cache, you should use the INTERNET_FLAG_RELOAD flag.

B ekiM
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question