Hi,
I'm new to APIs. Got the code below to compile (with 3 warnings C4129) but it won't output to the designated path. I created the txt file ahead of time, nqquotes.txt, but after the code compiles, that file stays empty.
Thanks for your help,
TR
#include "stdafx.h"
#include <tchar.h>
#include <urlmon.h>
#include <iostream>
using namespace std;
#pragma comment(lib, "urlmon.lib")
int main()
{
cout << "downloading NQ data from Quandl...";
HRESULT hr = URLDownloadToFile
( NULL, _T("https://www.quandl.com/api/v1/datasets/CME/NQH2015.csv"),_T("C:\users\my documents\visual studio 2008\projects\nq data\nqquotes.txt"), 0, NULL);
cout << "Done!" << endl;
system("PAUSE");
}