samedi 25 avril 2015

WINAPI URLDownloadToFileA Problems


i'have used the microsoft WINAPI syntax from http://ift.tt/1HD4fsT

so there is my code

#include <windows.h>

#pragma comment(lib, "urlmon.lib")

HRESULT URLDownloadToFileW( FALSE, "http://ift.tt/1Gt7qAl", "C:\\psych0bOx.png", 0, NULL);

when i try to compile it with msvs 12.0 i'get these errors:

C:\>cl C:\URLDownloadToFileA.cpp

C:\URLDownloadToFileA.cpp(8) : error C2365: 'URLDownloadToFileA' : redéfinition ; la précédente définition était 'fonction' C:\Program Files\Windows Kits\8.1\include\um\urlmon.h(4780) : voir la déclaration de 'URLDownloadToFileA' C:\URLDownloadToFileA.cpp(8) : error C2078: initialiseurs trop nombreux

C:\>

i dont understand why i get therse errs i'm completely blocked here :x


Aucun commentaire:

Enregistrer un commentaire