Re: WriteFile
From: Joseph M. Newcomer (newcomer_at_flounder.com)
Date: 08/14/04
- Next message: Joseph M. Newcomer: "Re: Why error C2011 when I use ifndef-define-endif?"
- Previous message: David Lowndes: "Re: SetCaretPos()"
- In reply to: Rudresh: "WriteFile"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 14 Aug 2004 19:49:49 -0400
The limit is based on the largest contiguous buffer you can allocate in your address
space. This is highly variable and there is no particular way to say what it will be, but
certain a few hundred megabytes is probably feasible.
How do you know it is writing "incomplete data"? Did you look at the return value from
WriteFile, and make sure it returns a true value, and did you check that the bytesWritten
is the same as the count? Is your byte count correct? How do you compute it?
You have not really given enough information here to deduce what has gone wrong. For
example, if you have 200 bytes and you are writing them as formatted MIME data it will
have a length > 200.
joe
On Fri, 13 Aug 2004 15:17:03 -0700, "Rudresh" <Rudresh@discussions.microsoft.com> wrote:
>Hi ,
>I am using WriteFile function for writting some data to harddisk.
>Is there any limit in size of data it can write.
>Basically this function is writting imcomplete data.
>I checked the contents of file. ( Writs encoded data to file then
>decode the data using Winzip ( MIME data )
>no of Bytes are at boundries like : fff, 9fff, ffff ...
>
>Any idea why this is hapening ?
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
- Next message: Joseph M. Newcomer: "Re: Why error C2011 when I use ifndef-define-endif?"
- Previous message: David Lowndes: "Re: SetCaretPos()"
- In reply to: Rudresh: "WriteFile"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|