I've been successfully using the InetTransferLib to upload and download
files via ftp for a long time. I only use it intermittently, and
recently this stopped working on one of my computers (P4, WXPHome,
Acc2000). The identical code in the identical database will work on
other similar computers and I can't work out why it is not working.
For ftp downloading, the following line in the code (ConnectToFTPHost
procedure) returns a zero, which subsequently results in a 'Cannot start
file transfer...' error.
hFTP = apiFtpOpenFile(hSession, .lpszUrlPath, lngFileMode,
FTP_TRANSFER_TYPE_BINARY Or INTERNET_FLAG_DONT_CACHE, 0&)
For uploading, the following line in the code (sChangeDir procedure)
returns zero.
lngRet = apiFtpSetCurrentDir(hSession, strExtract)
and the upload procedure finally returns the very helpful code of
-2147219289.
I've modified various settings in Internet Explorer but nothing has made
a difference. I can use the Windows FTP program from the command prompt,
and can access the relevant ftp site via Internet Explorer or WSFTP.
Any help greatly appreciated.
Owen Jenkins