Click here to Skip to main content
15,921,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHo to place a screen saver in a Dialog BOx Pin
Azghar Hussain25-Apr-04 22:05
professionalAzghar Hussain25-Apr-04 22:05 
GeneralRe: Ho to place a screen saver in a Dialog BOx Pin
ohadp26-Apr-04 1:39
ohadp26-Apr-04 1:39 
Generalheader versions probelm when WINVER >0x0500 Pin
makkarhardeep@rediffmail.com25-Apr-04 22:03
makkarhardeep@rediffmail.com25-Apr-04 22:03 
GeneralRe: header versions probelm when WINVER >0x0500 Pin
Mike Dimmick26-Apr-04 0:12
Mike Dimmick26-Apr-04 0:12 
GeneralReafFile stalls Pin
Olof Forshell25-Apr-04 21:39
Olof Forshell25-Apr-04 21:39 
GeneralRe: ReafFile stalls Pin
Paul Ranson26-Apr-04 1:34
Paul Ranson26-Apr-04 1:34 
GeneralRe: ReafFile stalls Pin
Olof Forshell26-Apr-04 9:39
Olof Forshell26-Apr-04 9:39 
GeneralRe: ReafFile stalls Pin
Paul Ranson26-Apr-04 11:19
Paul Ranson26-Apr-04 11:19 
I have a network server framework that uses IOCP, ReadFile/WriteFile etc. So I did some experimenting.

In a simple echo server test app the WriteFile always returns no error, the data has been passed to the transport etc. It also always causes the IOCP routine to run afterwards. The ReadFile always returns 'FALSE' with a status of ERROR_IO_PENDING unless there is data ready at the time it is called. In either case the IOCP routine is entered afterwards. Both these calls are also being made from the IOCP routine.

So IME whether you see ERROR_IO_PENDING or not doesn't matter, your completion routine runs anyway.

I'm puzzled why yours appears not to.

Paul

GeneralRe: ReafFile stalls Pin
Olof Forshell19-Jun-04 2:02
Olof Forshell19-Jun-04 2:02 
GeneralChecking of a file before the main window is shown Pin
ykutanoor25-Apr-04 21:02
ykutanoor25-Apr-04 21:02 
GeneralRe: Checking of a file before the main window is shown Pin
фил25-Apr-04 22:46
фил25-Apr-04 22:46 
GeneralChecking of a file before the main window is shown Pin
ykutanoor25-Apr-04 21:02
ykutanoor25-Apr-04 21:02 
GeneralPerl with Visual C++ Pin
Iceberg7625-Apr-04 18:18
Iceberg7625-Apr-04 18:18 
GeneralRe: Perl with Visual C++ Pin
Garth J Lancaster25-Apr-04 21:17
professionalGarth J Lancaster25-Apr-04 21:17 
GeneralHelp me Pin
ChuThaiDuong25-Apr-04 17:28
ChuThaiDuong25-Apr-04 17:28 
GeneralRe: Help me Pin
Prakash Nadar25-Apr-04 18:29
Prakash Nadar25-Apr-04 18:29 
GeneralView Scrolling Pin
Reunion25-Apr-04 17:18
Reunion25-Apr-04 17:18 
GeneralRe: View Scrolling Pin
Prakash Nadar25-Apr-04 18:51
Prakash Nadar25-Apr-04 18:51 
QuestionHow to run an exe from memory? Pin
KevinZhaoShK25-Apr-04 16:25
KevinZhaoShK25-Apr-04 16:25 
AnswerRe: How to run an exe from memory? Pin
David Crow26-Apr-04 2:42
David Crow26-Apr-04 2:42 
QuestionHow can add and change myself data to exe file?? Pin
fftz25-Apr-04 16:19
fftz25-Apr-04 16:19 
AnswerRe: How can add and change myself data to exe file?? Pin
grigsoft25-Apr-04 19:52
grigsoft25-Apr-04 19:52 
GeneralWorker Thread problem Pin
nanukos25-Apr-04 15:09
nanukos25-Apr-04 15:09 
GeneralRe: Worker Thread problem Pin
Antony M Kancidrowski26-Apr-04 2:07
Antony M Kancidrowski26-Apr-04 2:07 
GeneralRe: Worker Thread problem Pin
nanukos26-Apr-04 4:30
nanukos26-Apr-04 4:30 

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.