Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding InternetReadFile to your FTP class.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00413573
Message ID:
00438019
Vues:
17
Terry,

I show the syntax for FTPOpenFile to be something like:

DECLARE Integer FtpOpenFile IN WinInet ;
Integer nConnect_Handle, String @lpcRemoteFile, Integer nAccessType, ;
Integer nFlags, Integer nContext

Notice that the String is by reference with the @. That could be your problem.

Ed


>My FTPOpenFile fails saying it can't find the entry point to FTPOpenFile
>* Here's my declare
>
>DECLARE Integer FTPOpenFile ;
> IN "WININET.DLL";
> Integer,;
> String,;
> Integer,;
> Integer,;
> Integer
>
>WITH THIS
> .hFTPFile = InternetCloseHandle(.hFTPFile)
> fdwAccess = 2147483648 && GENERIC_READ
> dwFlags = 67108866 && FTP_TRANSFER_TYPE_BINARY
> && ORINTERNET_FLAG_NO_CACHE_WRITE
> dwContext = 0
>
> .hFTPFile = FTPOpenFile(.hiConnect,cFilename,fdwAccess,dwFlags,dwContext)
>ENDWITH
>
>
>OK so there it is. I now look stupid. What is wrong? and What should
>it actually be? I know the Declare is sparse but this form of declare works for other API calls I make, so I donte think that is it. .hIConnect is the handle returned from calling InternetConnect.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform