Answer the question
In order to leave comments, you need to log in
Unable to download file from website. What to do?
Hello.
I have a DLL project, I need to download a file from a website. It looks like this: site.com/file/123.exe
There is this code:
#include <urlmon.h>
#pragma comment(lib, "urlmon")
URLDownloadToFileA(NULL, "site.com/file/123.exe", "123.exe", 0, 0);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question