CTime GetTime(LPCTSTR name)
{
if (f.Open(name,CFile::modeRead)) {
CFileStatus fileStat;
if (f.GetStatus(fileStat))
return fileStat.m_mtime;
}
return 0;
}
In most cases this works just fine. The problem is that CFile::Open
sometimes fails. Usually because the file is being read elsewhere.
So this solution is not good enough for me.
Is there a better (safer) way to receive this data?
Maybe using CFile is wrong?
Please help!
Thanks
Dudu Arbel
Tom
"dududuil" <dudu...@discussions.microsoft.com> wrote in message
news:7FFCF5B7-8C49-4D33...@microsoft.com...