Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get a (gif-)picture in a stringvar
Message
De
11/05/2010 13:30:38
 
 
À
11/05/2010 13:20:07
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01464184
Message ID:
01464194
Vues:
33
You're welcome! The code is not mine, but I have used it without problems for years. There is also a much simpler version, but it doesn't provie so much error checking.
LPARAMETERS lcRemoteFile,lcLocalFile
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) 
>This is fantastic, Tore.
>
>Thank you very much.
>
>Lennert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform