Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declare FtpGetFileSize in WinINet.dll
Message
De
06/02/2002 12:58:09
 
 
À
06/02/2002 12:43:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00616161
Message ID:
00616169
Vues:
25
>I just started using the WinINet.dll in one of my programs but I can't declare the FtpGetFileSize function. I am using VFP7SP1 with Win2000Pro. While looking for help I found the following:
>FoxPro declaration:
>DECLARE INTEGER FtpGetFileSize IN wininet.dll ;
>    INTEGER hFile, ;
>    STRING @ lpdwFileSizeHigh
>
>When I use this declaration I get the error "Command Contains Unrecognized Phrase/Keyword"
>Can anyone tell me how to declare this correctly?
>Thanks in advance,
>Brian

Brian,
declare integer FtpGetFileSize IN WinINet.dll integer, integer @

local FileSize, fs1, fs2, HaveFileSize
fs2 = 0

fs1 = FtpGetFileSize( fd_ftp, @fs2)

FileSize = fs2 * 2^32 + fs1

HaveFileSize = !(FileSize < 0 )
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform