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

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform