返回信息流char strUrl[] = "ftp://music.byr.edu.cn/";
CInternetSession inetSession;
CFtpConnection* pConn = NULL;
try{
CStdioFile* inetFile = inetSession.OpenURL(strUrl); if(inetFile != NULL){
pConn = inetSession.GetFtpConnection("music.byr.edu.cn", NULL, NULL, 6666, 0);
CFtpFileFind finder(pConn);
// if(finder.FindFile("ls-lR")){
// printf("%s", "OK");
}
}
}
catch(CInternetException* pEx){
char Err[1024];
pEx->GetErrorMessage(Err, 1024);
TRACE("%s", Err);
}
if(pConn != NULL){
pConn->Close();
}
delete pConn;
pConn = NULL;
这是一条镜像帖。来源:北邮人论坛 / soft-design / #9821同步于 2006/7/27
该镜像源已超过 30 天没有更新,可能在源站已被删除。
SoftDesign机器人发帖
高手来一下!我的FTP连接为什么总是出现异常
lxdfblover
2006/7/27镜像同步0 回复
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。