>How about:
>DECLARE INTEGER FtpGetFileSize IN wininet;
> INTEGER hFile, STRING @lpdwFileSizeHigh
>Example at:
http://www.news2news.com/vfp/?function=-1&example=69>>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
Either the example is wrong or you missed the comment at the end
FtpGetFileSize Function Internet Development Index
--------------------------------------------------------------------------------
Retrieves the file size of the requested FTP resource.
Syntax
DWORD FtpGetFileSize( HINTERNET hFile,
LPDWORD lpdwFileSizeHigh
);
Parameters
hFile
[in] HINTERNET handle returned from a call to FtpOpenFile.
lpdwFileSizeHigh
[out] Pointer to the high-order unsigned long integer of the file size of the requested FTP resource.
Return Value
Returns the low-order unsigned long integer of the file size of the requested FTP resource.
Gregory