Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Closing an application while it is still busy Pin
David Crow28-Jul-06 5:00
David Crow28-Jul-06 5:00 
Questiondynamically allocted array question Pin
kitty528-Jul-06 1:22
kitty528-Jul-06 1:22 
AnswerRe: dynamically allocted array question Pin
Cedric Moonen28-Jul-06 1:31
Cedric Moonen28-Jul-06 1:31 
GeneralRe: dynamically allocted array question Pin
Steen Krogsgaard28-Jul-06 1:39
Steen Krogsgaard28-Jul-06 1:39 
GeneralRe: dynamically allocted array question Pin
kitty528-Jul-06 2:08
kitty528-Jul-06 2:08 
GeneralRe: dynamically allocted array question Pin
Cedric Moonen28-Jul-06 2:15
Cedric Moonen28-Jul-06 2:15 
GeneralRe: dynamically allocted array question Pin
kitty528-Jul-06 2:26
kitty528-Jul-06 2:26 
AnswerRe: dynamically allocted array question Pin
Steen Krogsgaard28-Jul-06 1:39
Steen Krogsgaard28-Jul-06 1:39 
1) it will overwrite. To append, use lpNumberOfBytesRead to offset the buffer pointer in subsequent calls to ReadFile.
2) Yes. lpBuffer is a void pointer, so it will be handled as an array of bytes. If the endian-ness of the words you read is correct you will get an array of 256 ULONGS when you read 1024 bytes.
3) It will read exactly nNumberOfBytesToRead. ReadFile will wait until it has read these bytes (assuming you don't use overlapped I/O, but that's another story), but it will not read more than this number of bytes (this would also wrech havoc on your buffer)


Cheers
Steen.

"Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006

GeneralRe: dynamically allocted array question Pin
Cedric Moonen28-Jul-06 1:44
Cedric Moonen28-Jul-06 1:44 
GeneralRe: dynamically allocted array question Pin
Steen Krogsgaard28-Jul-06 1:52
Steen Krogsgaard28-Jul-06 1:52 
GeneralRe: dynamically allocted array question Pin
Cedric Moonen28-Jul-06 1:55
Cedric Moonen28-Jul-06 1:55 
AnswerRe: dynamically allocted array question Pin
Zac Howland28-Jul-06 4:58
Zac Howland28-Jul-06 4:58 
QuestionList Control Help need it........................................ Pin
konstantinos_100028-Jul-06 1:08
konstantinos_100028-Jul-06 1:08 
AnswerRe: List Control Help need it........................................ Pin
Naveen28-Jul-06 1:29
Naveen28-Jul-06 1:29 
GeneralRe: List Control Help need it........................................ Pin
konstantinos_100028-Jul-06 5:22
konstantinos_100028-Jul-06 5:22 
GeneralRe: List Control Help need it........................................ Pin
Naveen28-Jul-06 18:47
Naveen28-Jul-06 18:47 
QuestionRe: List Control Help need it........................................ Pin
Hamid_RT28-Jul-06 1:50
Hamid_RT28-Jul-06 1:50 
AnswerRe: List Control Help need it........................................ Pin
konstantinos_100028-Jul-06 2:31
konstantinos_100028-Jul-06 2:31 
GeneralRe: List Control Help need it Pin
Hamid_RT28-Jul-06 3:41
Hamid_RT28-Jul-06 3:41 
GeneralRe: List Control Help need it Pin
konstantinos_100028-Jul-06 5:23
konstantinos_100028-Jul-06 5:23 
GeneralRe: List Control Help need it Pin
Hamid_RT28-Jul-06 6:11
Hamid_RT28-Jul-06 6:11 
QuestionSir, Windows allots 4 GB space for Proccess can you tell me Pin
CodeVarma28-Jul-06 0:42
CodeVarma28-Jul-06 0:42 
AnswerRe: Sir, Windows allots 4 GB space for Proccess can you tell me Pin
Jonathan [Darka]28-Jul-06 0:55
professionalJonathan [Darka]28-Jul-06 0:55 
Questionprogrammatic gamma correction for dual monitors Pin
srboisvert28-Jul-06 0:42
srboisvert28-Jul-06 0:42 
AnswerRe: programmatic gamma correction for dual monitors Pin
Blake Miller1-Aug-06 12:56
Blake Miller1-Aug-06 12:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.