thegame8311
Technical User
I have seen many ways, but strictly I am using visual c++ not visual studio, I have seen URLDownloadToFile, wget and curl but I can't get any of them to work, here is my code:
Code:
#include "stdafx.h"
#include <urlmon.h>
#include <iostream>
#include <tchar.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
HRESULT hr = URLDownloadToFile(NULL, _T("[URL unfurl="true"]http://www.nfl.com"),[/URL] _T("test2.html"), 0, NULL);
cout << "hi" << endl;
system("PAUSE");
return 0;
}