Hello Ehsan,
Thursday, May 15, 2003, 12:33:57 AM, you wrote:
>> of one of my partitions as a test. When the following code tries
>> to get the attibutes of that file it causes an assertion failure
>> at the GetStatus call. A search on the net said that CFileStatus
>> has a limit of 4 GB. Since the file it is failing on is over 9 GB,
>> that is probably the problem. My file manager reads, and can
>> change, the attributes with no trouble. Any idea how I go about
>> just reading them?
> Have you tried GetFileAttributes( )?
I need to get the date attributes (m_ctime and m_mtime) that
GetFileAttributes doesn't have. I could use both calls but
CFileStatus would still abort on the large file. I suppose I could add
a size check to prevent CFileStatus from trying to access the file but
with both additional checks the speed of the program would probably
suffer too much.
--
Jack
EMail: [EMAIL PROTECTED]
Home: http://home.twmi.rr.com/jyorktw/
...It take many nails to build a crib, but one screw to fill it.
