Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
URLDownloadToFile in urlmon fails
Message
From
08/08/2004 04:32:45
Brian Ferguson
Sci-fer Computing
Australia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Title:
URLDownloadToFile in urlmon fails
Miscellaneous
Thread ID:
00931604
Message ID:
00931604
Views:
72
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
Next
Reply
Map
View

Click here to load this message in the networking platform