Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FtpFileOpen doesn't work.
Message
From
29/11/2000 16:49:03
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00447008
Message ID:
00447050
Views:
9
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform