Hello guys, i have this code:
Qt Code:
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3. #include "urlmon.h"
  4. #include "string"
  5. #include "iostream"
  6. #include "cstring"
  7.  
  8. //...A lot of s*it!
  9.  
  10. void MainWindow::on_pushButton_clicked()
  11. {
  12. QString url;
  13. QString path;
  14.  
  15. path = ui->lineEdit_2->text();
  16. url= ui->lineEdit->text();
  17. ui->label_2->setText(url+"//"+path);
  18. URLDownloadToFile(NULL,&url,&path,NULL);
  19. }
  20.  
  21. //other sh*t
To copy to clipboard, switch view to plain text mode 

I've got an error in the line
Qt Code:
  1. URLDownloadToFile(NULL,&url,&path,NULL);
To copy to clipboard, switch view to plain text mode 

...\mainwindow.cpp:27: error: cannot convert 'QString*' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HRESULT URLDownloadToFileW(LPUNKNOWN, LPCWSTR, LPCWSTR, DWORD, LPBINDSTATUSCALLBACK)'
URLDownloadToFile(NULL,&url,&path,NULL);