Click here to Skip to main content
Click here to Skip to main content

Code to download a remote file from a valid URL using URLDownloadCacheFile function.

By , 18 Oct 2001
 

Introduction

You can use this code to download a remote file from a valid URL using URLDownloadCacheFile function. The demo shows that get a .gif file and load it into memory (i get it's BITMAP struct). URLDownloadCacheFile function download a file from a URL and save the file in IE temp folder, so when you use CreateFile function,you must use FILE_FLAG_RANDOM_ACCESS flag,otherwise you will failed to createfile. You can also use URLDownloadFile to get a remote file,if you use this function,you need not care about the flag about the CreateFile function. Another good way to get remote file is socked,it can control the process,so cool! If you have intersting in socked,try it!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

redhack
Web Developer
China China
Member
I love program!

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
General[Message Deleted]memberAnonymous22 Oct '01 - 11:45 
GeneralRe: poor writing skillsmemberChristian Graus22 Oct '01 - 12:09 
GeneralRe: poor writing skillsmemberwho cares what my name is?18 Dec '03 - 17:56 
GeneralRe: poor writing skillsmemberChristian Graus23 Oct '05 - 12:09 
GeneralRe: poor writing skillssussAnonymous20 Oct '05 - 18:40 
GeneralRe: poor writing skillsmemberChristian Graus23 Oct '05 - 12:10 
GeneralRe: poor writing skillsmemberKurt Farrar21 Dec '05 - 4:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 19 Oct 2001
Article Copyright 2001 by redhack
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid