'URLDownloadToFileA(NULL, url, path, 0, NULL); C++

How would I go about Achieving this code:

char *url[100];
char *path[100];
gets(url);
gets(path);
URLDownloadToFileA(NULL, url, path, 0, NULL);

The goal is to make a down loader. The user inputs the url he wants to download, and where he wants to save it. When I try to compile I get "cannot convert parameter 2 from 'CHAR [100]' to 'LPWSTR'"?? And is there a clean way to convert char into const char?

c++


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source