>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