Download source files - 42 Kb
provides an MFC dialog which performs FTP uploads and downloads
similar to the Internet Explorer download dialog as shown above.
v1.0 (4 January 2000)
in your project simply include
from the test application in your application and
in whichever files you want to use the class in.
You should also copy over all the
string resources, the
dialog resource and the
"avi" resource. To bring up the dialog to upload / download a specific file, just use some
code like the following:
dlg.m_sServer = _T("ftp.some-site.com");
dlg.m_sRemoteFile = _T("/somefile.ext");
dlg.m_sLocal = _T("c:\\somfile.ext");
dlg.m_bDownload = TRUE;
dlg.m_bBinary = TRUE;
if (dlg.DoModal() == IDOK)
AfxMessageBox("File was downloaded successfully");
You should also have a look at the
CFTPDlg::OnUpload() code in the sample application.
4th January 2000