The function you're after is in
urlmon.h
.
You could try it like this:
#include <tchar.h>
#include <urlmon.h>
#include <Wininet.h>
#pragma comment(lib, "urlmon.lib")
#pragma comment(lib,"wininet.lib")
int main()
{
HRESULT hr;
LPCTSTR Url = _T("http://url.."), File = _T("etc...");
hr = URLDownloadToFile (0, Url, File, 0, 0);
return 0;
}
The example above was grabbed from this web site:
http://www.dreamincode.net/forums/topic/189846-progress-bar-urldownloadtofile/[
^]
Regards,