FTP问题 用CFtpFileFiond::FindFile(pszName)取得ftp.lzu.edu.cn/pub目录下的全部子目录,参数pszName的值应该是什么? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 路径啊比如/pub/incoming之类的 1.change the directory to pub(FtpSetCurrentDirectory())2.CFtpFileFind::FindFile("*.*") or FtpFindFirstFile()3.check whether the found stuff is directory 如果你要获得整个目录下的文件,包括子目录,你先设置到当前目录如/pub然后调用FindFile(NULL)函数,之后一定要调用FindNextFile(),再调用IsDirectory()判断是不是目录 CFileFind fileFind;SetCurrentDirectory(szLocDirectory);int count = 0;CString FTPServer[100];BOOL bContinue=fileFind.FindFile("*.*");while(bContinue){ bContinue=fileFind.FindNextFile(); count++; if(fileFind.IsDirectory()) FTPServer[count] = finder.GetFilePath();} 如何解析网页流 ms speech sdk语音识别程序中载入“XML文件“的问题! 感觉怎么创新工厂越来越像传销了呢? 【恳请帮助】VC 6 中列表控件参数pszText的内容显示乱码,请求大虾们帮助!! 关于【键盘消息】的极简单问题,(UP有分) 什么是输入焦点?? 能推荐一些VC++的入门书籍吗? 控制USB接口的设备 菜菜的问题!!! 为什么在Win2000中用MFC插入的控件不会在control面板中出现,而Win98就能出现? 怎样从文件句柄得到文件的全路径 运算符构造函数怎么用?有什么用?
比如
/pub
/incoming
之类的
2.CFtpFileFind::FindFile("*.*") or FtpFindFirstFile()
3.check whether the found stuff is directory
然后调用FindFile(NULL)函数,之后一定要调用FindNextFile(),再调用IsDirectory()判断是不是目录
SetCurrentDirectory(szLocDirectory);
int count = 0;
CString FTPServer[100];
BOOL bContinue=fileFind.FindFile("*.*");
while(bContinue)
{
bContinue=fileFind.FindNextFile();
count++;
if(fileFind.IsDirectory()) FTPServer[count] = finder.GetFilePath();
}