Click to See Complete Forum and Search --> : CFtpFindFile Bug


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

Subramanianbinu
November 29th, 2001, 04:01 AM
were u able to find out why this happens?

dsfu
December 18th, 2001, 05:51 AM
I've got exactly the same problem as on some FTP servers (could be UNIX, VMS or Windows...), the program seems to never exit from the function FindFile.
Any idea ???