hrenaud
April 19th, 2001, 11:04 AM
Hello,
I want to know the files on a server. I open the connection with FTP (CInternet Session). And i use this code to extract the files :
CFtpFileFind FtpFileFind(m_pFtpConnection, ID_CONTEXT_FTP_ERROR);
BOOL bAnotherFile = TRUE;
if (FtpFileFind.FindFile("*.*")) {
while (bAnotherFile) {
bAnotherFile = FtpFileFind.FindNextFile();
strList.AddTail(FtpFileFind.GetFileName());
}
}
It s not works on all the Computer, some computers stop on the line FindFile() function.
Thanks
I want to know the files on a server. I open the connection with FTP (CInternet Session). And i use this code to extract the files :
CFtpFileFind FtpFileFind(m_pFtpConnection, ID_CONTEXT_FTP_ERROR);
BOOL bAnotherFile = TRUE;
if (FtpFileFind.FindFile("*.*")) {
while (bAnotherFile) {
bAnotherFile = FtpFileFind.FindNextFile();
strList.AddTail(FtpFileFind.GetFileName());
}
}
It s not works on all the Computer, some computers stop on the line FindFile() function.
Thanks