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.

, 18 Oct 2001
Rate this:
Please Sign up or sign in to vote.
You can use this code to download a remote file from a valid URL using URLDownloadCacheFile function.
<!-- Download Links --> <!-- Add the rest of your HTML here -->

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

Share

About the Author

redhack
Web Developer
China China
I love program!

Comments and Discussions

 
General[Message Deleted] PinmemberAnonymous22-Oct-01 11:45 
GeneralRe: poor writing skills PinmemberChristian Graus22-Oct-01 12:09 
GeneralRe: poor writing skills Pinmemberwho cares what my name is?18-Dec-03 17:56 
GeneralRe: poor writing skills PinmemberChristian Graus23-Oct-05 12:09 
GeneralRe: poor writing skills PinsussAnonymous20-Oct-05 18:40 
GeneralRe: poor writing skills PinmemberChristian Graus23-Oct-05 12:10 
GeneralRe: poor writing skills PinmemberKurt Farrar21-Dec-05 4:07 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 19 Oct 2001
Article Copyright 2001 by redhack
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid