Я написал загрузочную программу на C ++, используя urlmon.dll .
Я использовал RTM Visual Studio 2015 в качестве IDE.
Вот мои коды:
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "clocale"
#include "fstream"
#include "iostream"
#include "string"
using namespace std;
typedef int*(*tdDosyaIndir)(void*, char*, char*, DWORD, void*);
int main()
{
setlocale(LC_ALL, "turkish");
string strAdres;
cout << "İndirilecek adresi girin:\n";
cin >> strAdres;
HINSTANCE dll = LoadLibrary(L"urlmon.dll");
tdDosyaIndir DosyaIndir = (tdDosyaIndir)GetProcAddress(dll, "URLDownloadToFileA");
DosyaIndir(0, &strAdres[0u], "dosya.html", 0, 0);
FreeLibrary(dll);
return 0;
}
Но проблема в том, что когда я пытаюсь загрузить что-то, программа показывает эту ошибку:

Что делать вЧтобы решить эту проблему?