Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
URLDownloadToFile in urlmon fails
Message
 
 
À
08/08/2004 04:32:45
Brian Ferguson
Sci-fer Computing
Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00931604
Message ID:
00931621
Vues:
21
Brian,

You code runs fine in the later build of VFP9 beta.

>
>I have been using urlmon successfully with vfp5 but following example code (taken from posting on ~fox.progammer.exchange) doesnt work in vfp9 beta, instead returning -2.1466E+9 rather than zero. Have checked with a number of different sites/file downloads.
>Has anyone seen vfp9 beta work ok with URLDownloadToFile.
>cSName = "http://www.levelextreme.com/Images/VisualFoxProZone3.gif"
>cTName = "C:\Temp\Zone3.gif"
>
>declare integer URLDownloadToFile in urlmon ;
>   integer pcaller, ;
>   string szurl, ;
>   string szfilename, ;
>   integer dwreserved, ;
>   integer lpfncb
>? URLDownloadToFile(0, cSName, cTName, 0, 0) && returns 0 if successful
>Regards,
>Ferg
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform