Steve White
May 5th, 1999, 12:51 AM
Environment VC++ 5.0 Win95/NT4.0
Hi;
I am trying to retreive file information from a CInternetSession using FindFile and FindNextFile. The following function calls work fine returning the expected information:
CFtpFileFind ftpFind(pFtpConnection);
bContinue = ftpFind.FindFile(NULL,INTERNET_FLAG_EXISTING_CONNECT | INTERNET_FLAG_RELOAD);
bContinue = ftpFind.FindNextFile();
ftpFind.GetFileName()
ftpFind.IsDirectory()
ftpFind.GetLength()
I am not able to successfully retrive the file creation, access or modified dates. I have tried the following format and calls but only ever seem to get a 0 date even though the function returns a success code. Can some one spot the problem?
CTime cFileTime
ftpFind.GetCreationTime(cFileTime);
ftpFind.GetLastAccessTime(cFileTime);
ftpFind.GetWriteTime(cFileTime);
Thanks
Steve White
Hi;
I am trying to retreive file information from a CInternetSession using FindFile and FindNextFile. The following function calls work fine returning the expected information:
CFtpFileFind ftpFind(pFtpConnection);
bContinue = ftpFind.FindFile(NULL,INTERNET_FLAG_EXISTING_CONNECT | INTERNET_FLAG_RELOAD);
bContinue = ftpFind.FindNextFile();
ftpFind.GetFileName()
ftpFind.IsDirectory()
ftpFind.GetLength()
I am not able to successfully retrive the file creation, access or modified dates. I have tried the following format and calls but only ever seem to get a 0 date even though the function returns a success code. Can some one spot the problem?
CTime cFileTime
ftpFind.GetCreationTime(cFileTime);
ftpFind.GetLastAccessTime(cFileTime);
ftpFind.GetWriteTime(cFileTime);
Thanks
Steve White