Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FtpFileOpen doesn't work.
Message
De
29/11/2000 16:49:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00447008
Message ID:
00447050
Vues:
13
Setup API Calls

InternetOpen - to get a handle to WININET functions
InternetConnect - to get a handle to Internet Server
FtpOpenFile - to get a handle to the file that you want on the server
InternetReadFile - to read the file you want in chunks.
InternetCloseHandle - Call once for each Handle from InternetOpen, InternetConnect, and FtpOpenFile

Create a loop around InternetReadFile updating your progressbar with each successive read of bytes from the file.


The following 2 constants are used for lngGenericRead and FTP_TRANSFER_TYPE_BINARY. In your second message.
#DEFINE GENERIC_READ 0x80000000
#define FTP_TRANSFER_TYPE_BINARY 2
Terry Rooks
Software Systems Architect
Microsoft Certified Solution Developer.Net

If at first you don't succeed, then skydiving definitely isn't for you.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform