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.