HI , i need help with a c++ code that downloads a single file from a DIRECT link and save it somewhere on the computer i am working under windows and i have searched google but i didnt find anything simple just tons of codes that i cant understand i dont need any progress of the download or anything just simple file download , Thanks in advanced
medopunsher 0 Light Poster
Recommended Answers
Jump to PostI think what you want is an ftp library -- here are some links.
Jump to PostTry this: both first and last parameters can be NULL.
URLDownloadToFile(NULL, "www.DaniWeb.com/something.jpg", "c:\\mydir\\something.jpg", NULL);
Jump to PostThis code is not sufficient and won't work on some Windows SPx.....
This worked for me on Vista Home using VC++ 2008 Express. But yes, anyone wanting to use that function needs to know what they are doing, such as reading all about it on
All 12 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
kvprajapati 1,826 Posting Genius Team Colleague
Laiq Ahmed 42 Junior Poster
CoAstroGeek 0 Newbie Poster
bornedbored 0 Newbie Poster
medopunsher 0 Light Poster
medopunsher 0 Light Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
marco93 -87 Junior Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
medopunsher 0 Light Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.