Title: Re: [msvc] CFileStatus fails on large file

How about  'GetFileInformationByHandle'?

Adam
----- Original Message -----
From: "Jack" <[EMAIL PROTECTED]>
To: "msvc Begin" <[EMAIL PROTECTED]>
Sent: Wednesday, May 14, 2003 10:18 PM
Subject: [msvc] CFileStatus fails on large file


> Hello,
>
> Using .net and XP pro.
>
> I'm using CFileStatus to get attributes of a file.  When I first
> installed XP pro I used the backup program to create a complete backup
> 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?
>
> bool FindFiles::FileHasChanged(const string & locn, SearchData & sd)
> {
>     CFile cFile;
>     CFileStatus statusSrc;
>
>     if (! cFile.GetStatus(locn.c_str(), statusSrc))
>     {
>
> --
> Jack
> Email: [EMAIL PROTECTED]
> Home: http://home.twmi.rr.com/jyorktw/
>
> ...Baseball is wrong: man with four balls cannot walk.
>

Reply via email to