Hello guys, i have this code:
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "urlmon.h"
#include "string"
#include "iostream"
#include "cstring"
//...A lot of s*it!
void MainWindow::on_pushButton_clicked()
{
path = ui->lineEdit_2->text();
url= ui->lineEdit->text();
ui->label_2->setText(url+"//"+path);
URLDownloadToFile(NULL,&url,&path,NULL);
}
//other sh*t
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "urlmon.h"
#include "string"
#include "iostream"
#include "cstring"
//...A lot of s*it!
void MainWindow::on_pushButton_clicked()
{
QString url;
QString path;
path = ui->lineEdit_2->text();
url= ui->lineEdit->text();
ui->label_2->setText(url+"//"+path);
URLDownloadToFile(NULL,&url,&path,NULL);
}
//other sh*t
To copy to clipboard, switch view to plain text mode
I've got an error in the line
URLDownloadToFile(NULL,&url,&path,NULL);
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);
Bookmarks