title: Download file to temp dir in C++
body: <p>I'm trying to download a file from the internet to my temp directory.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>HRESULT hr;
  LPCTSTR Url = _T("linkhere"), File = _T("C:\\test.exe");
  hr = URLDownloadToFile (0, Url, File, 0, 0);
  </code></pre>
  
  <p>This is working fine.</p>
  
  <p>How do I save the file to the temp directory (using GetTempPath)</p>