Click here to Skip to main content
16,019,614 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Asynchronous overlapped I/O Pin
led mike26-Nov-07 8:27
led mike26-Nov-07 8:27 
GeneralRe: Asynchronous overlapped I/O Pin
racette26-Nov-07 10:18
racette26-Nov-07 10:18 
GeneralRe: Asynchronous overlapped I/O Pin
led mike26-Nov-07 10:45
led mike26-Nov-07 10:45 
GeneralRe: Asynchronous overlapped I/O Pin
Mark Salsbery14-Nov-07 12:07
Mark Salsbery14-Nov-07 12:07 
GeneralRe: Asynchronous overlapped I/O Pin
led mike15-Nov-07 4:55
led mike15-Nov-07 4:55 
GeneralRe: Asynchronous overlapped I/O Pin
Mark Salsbery15-Nov-07 7:47
Mark Salsbery15-Nov-07 7:47 
GeneralRe: Asynchronous overlapped I/O Pin
racette16-Nov-07 7:39
racette16-Nov-07 7:39 
AnswerRe: Asynchronous overlapped I/O Pin
Mark Salsbery14-Nov-07 6:10
Mark Salsbery14-Nov-07 6:10 
racette wrote:
Does a call to GetOverlappedResult() keeps on reading or writing or should I call WriteFile or ReadFile again and again until its done?


You are responsible for checking the overlapped result and sending/receiving any remaining bytes.


FWIW, if you are calling GetOverlappedResult() right after a function call fails with ERROR_IO_PENDING,
then you're essentially doing synchronous I/O, and all you've done is added complexity to the code.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Asynchronous overlapped I/O Pin
led mike14-Nov-07 7:51
led mike14-Nov-07 7:51 
GeneralRe: Asynchronous overlapped I/O Pin
racette14-Nov-07 8:56
racette14-Nov-07 8:56 
QuestionTime Pin
EagleAmerican1414-Nov-07 4:49
EagleAmerican1414-Nov-07 4:49 
AnswerRe: Time Pin
toxcct14-Nov-07 4:58
toxcct14-Nov-07 4:58 
GeneralRe: Time Pin
EagleAmerican1414-Nov-07 5:02
EagleAmerican1414-Nov-07 5:02 
GeneralRe: Time Pin
toxcct14-Nov-07 5:05
toxcct14-Nov-07 5:05 
AnswerRe: Time Pin
Maximilien14-Nov-07 5:10
Maximilien14-Nov-07 5:10 
QuestionHow to convert char* to System::String^ Pin
Boroumandan14-Nov-07 3:41
Boroumandan14-Nov-07 3:41 
AnswerRe: How to convert char* to System::String^ Pin
toxcct14-Nov-07 3:46
toxcct14-Nov-07 3:46 
GeneralRe: How to convert char* to System::String^ Pin
toxcct14-Nov-07 6:19
toxcct14-Nov-07 6:19 
AnswerRe: How to convert char* to System::String^ Pin
toxcct14-Nov-07 6:31
toxcct14-Nov-07 6:31 
QuestionRe: how to use Date Time picker control Pin
David Crow14-Nov-07 3:24
David Crow14-Nov-07 3:24 
QuestionDoModal not returning. Pin
Mr Simple14-Nov-07 2:32
Mr Simple14-Nov-07 2:32 
AnswerRe: DoModal not returning. Pin
Roger Broomfield14-Nov-07 3:01
Roger Broomfield14-Nov-07 3:01 
AnswerRe: DoModal not returning. Pin
Nelek14-Nov-07 3:03
protectorNelek14-Nov-07 3:03 
AnswerRe: DoModal not returning. Pin
KarstenK14-Nov-07 3:14
mveKarstenK14-Nov-07 3:14 
AnswerRe: DoModal not returning. Pin
David Crow14-Nov-07 3:15
David Crow14-Nov-07 3:15 

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.