I try to get the file status in MFC and found that of the two versons, only
file.GetStatus(fstatus) works (i.e. with an opened file) in Release mode
while the static function:
CFile::GetStatus(filename,fstatus) does not work in Release mode.(although it works in Debug mode)
Why is it so and what is the best and easiest way to check file status without opening the file. Like checking the modified time.