SOL9 Sample: FileDownloader

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * FileDownloader.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


// SOL9
// 2012/02/20

#include <sol/ole/FileDownloader.h>

void _tmain(int argc, TCHAR* argv[])
{
  if (argc != 3) {
    _tprintf(_T("Usage:%s url saveFileName\n"), argv[0]);
    return ;
  }
  
  TCHAR* url = argv[1];
  TCHAR* saveFileName = argv[2];


  try {
    FileDownloader downloader;
    downloader.download(url, saveFileName);
    _tprintf(_T("Downloaded %s to %s\n"), url, saveFileName);

  } catch (Exception& ex) {
    ex.printf();
  } catch (...) {

  }
}

Last modified: 2 May 2016

Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.