main logo
Subject: RE: VFP6.0 - API Call UrlDownloadToFile() Code
Author: Garry Bettle
Posted: 2003/02/19 05:08:00
 
View Entire Thread
New Search


-----Original Message-----
Hi All,

Just wondering if someone has some code, which will allow me to use the =
UrlDownloadToFile() API call from within fox, as I want to have an =
update process along the lines, but more spectual than the way Symantec =
does.
TIA.
Regards,
Paul.
-----Original Message-----

Howdy Paul,

"How to download this reference`s archive through URL Monikers
functions.PRG"

*!* http://www.news2news.com/vfp/?example=175&function=268

DECLARE INTEGER URLDownloadToFile IN urlmon.dll;
INTEGER pCaller, STRING szURL, STRING szFileName,;
INTEGER dwReserved, INTEGER lpfnCB

LOCAL lcRemoteFile, lcLocalFile
lcRemoteFile = "http://www.news2news.com/vfp/downloads/w32data.zip"
lcLocalFile = "c:\temp\w32data.zip"

= URLDownloadToFile (0, lcRemoteFile, lcLocalFile, 0, 0)

Cheers,

Garry



 
©2003 Garry Bettle
<-- Prior Message New Search Next Message -->