|
-
May 5th, 1999, 12:51 AM
#1
FindNextFile File Times
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|