URLDownloadableFile="https://rili.jin10.com/day/2024-09-13";
URLDownloadableFile="https://rili.jin10.com/";
两个地址。获取结果->第一个是-2146697210 ,第二个是0成功。问下怎么弄?
我使用的是Mql语言。
void Onstart(){
string URLDownloadableFile, RootFileDestination;
int hCaller, hCallback;
hCaller=0x00000000;
URLDownloadableFile="https://rili.jin10.com/day/2024-09-13";
RootFileDestination="mal.html";
hCallback=0x00000000;
int res= URLDownloadToFileW(hCaller,URLDownloadableFile,RootFileDestination,0,hCallback);
Print(URLDownloadableFile,"-->res=",res);
hCaller=0x00000000;
URLDownloadableFile="https://rili.jin10.com/";
RootFileDestination="mal.html";
hCallback=0x00000000;
int res2= URLDownloadToFileW(hCaller,URLDownloadableFile,RootFileDestination,0,hCallback);
Print(URLDownloadableFile,"-->res2=",res2);
}