I finally found the solution to how to link my gcc compiler to the urlmon library and to its respective header.
The thing is, when I call the function, it is as if it does nothing.
No file is downloaded to my PC, and, I call GetLastError() and it returns 0 .
I don't know if I am calling it correctly but, here is how I call it:
Here are my assumptions as to why this problem is occuring:Code:URLDownloadToFileW(NULL, "www.myurlhere.com/myfilehere.fileextension", "filename.fileextension", 0, NULL)
1. It might be because the header or library I found are corrupted; but, the compiler does not complain about this.
2. I am not passing the parameters of the function correctly. I assume this since the compiler complains that I am passing args 2 and 3 from incompatible pointer types.
Any help is greatly appreciated.