CFtpFileFind Bug !
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi~ Below source is that find a file on ftp server. (from MSDN example) By the way, no problem on windows iis ftp server , but finder.FindFile() always return 1 on unix server . What's wrong?? CInternetSession sess(_T("MyProgram/1.0")); CFtpConnection* pConnect = NULL; pConnect = sess.GetFtpConnection(_T("ftp.microsoft.com")); CFtpFileFind finder(pConnect); // start looping BOOL bWorking = finder.FindFile(_T("*")); // bug !! while (bWorking) { bWorking = finder.FindNextFile(); printf("%s\n", (LPCTSTR) finder.GetFileURL()); } There are two men, one is a programmer, another is a man.