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)
>Regards,
>Ferg
--sb--