直接上代码吧: void CftptestDlg::OnBnClickedButtonGo() { // TODO: 在此添加控件通知处理程序代码 //开始上传 CInternetSession CIS; CFtpConnection *ftp = CIS.GetFtpConnection(“server”,”username”,”ps”,21); //建立文件夹 //ftp->CreateDirectory(“fffff”); CString strLocalFile; CFile fUpload(“test.zip”,CFile::modeRead|CFile::typeBinary);
Read more