Click here to Skip to main content
15,913,570 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing the ellipsis (...) Pin
mvworld7-May-01 3:52
mvworld7-May-01 3:52 
GeneralRe: Using the ellipsis (...) Pin
Chris Losinger7-May-01 4:07
professionalChris Losinger7-May-01 4:07 
GeneralDesparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 3:49
suss7-May-01 3:49 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
#realJSOP7-May-01 4:13
professional#realJSOP7-May-01 4:13 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 4:36
suss7-May-01 4:36 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 6:14
suss7-May-01 6:14 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 10:37
suss7-May-01 10:37 
GeneralProblem with WriteFile and GetOverlappedResult Pin
fd97507-May-01 2:43
professionalfd97507-May-01 2:43 
Hi,

Maybe there is somebody who knows what may be wrong or has experienced the following problem:

I have an application which uses the PC's communication port. It uses "CreateFile" to create a virtual "file" on the comm port and simply uses WriteFile to write to it. Generally it works just great, sometimes for hours on end. Then all of a sudden the "WriteFile" returns an error in the same way it would do in case the "WriteFile" cannot be completed in one go Confused | :confused: . This is weird because I never send more then a few dozen bytes anyway and take care to space all transmission quite well. Still, I then use "GetOverlappedResult" to find out what is going on. Sure enough it says ERROR_IO_INCOMPLETE and keeps on doing so for ever. I have set up a timeout function on it to trap the condition and simply discard the outgoing message (there are plenty retries etc... at the higher application levels anyway). I perform "ClearCommError" and "CancelIo" to try and correct things but that does not always work. Sometimes having done it once the Writefile keeps giving back the same error continuously. having done it often enough this sometimes leads to the PC crashing quite spectacularly.

Anybody have any ideas or knowledge about this ? Any help would be most appreciated

Regards,
Filip


General'for' statement can't work! Pin
hearties7-May-01 0:09
hearties7-May-01 0:09 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 0:46
professional#realJSOP7-May-01 0:46 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 1:11
hearties7-May-01 1:11 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 1:24
professional#realJSOP7-May-01 1:24 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 1:40
hearties7-May-01 1:40 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 1:50
professional#realJSOP7-May-01 1:50 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 2:16
hearties7-May-01 2:16 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 2:50
professional#realJSOP7-May-01 2:50 
GeneralRe: 'for' statement can't work! Pin
hearties9-May-01 5:55
hearties9-May-01 5:55 
GeneralRe: 'for' statement can't work! Pin
Wojciech Zaremba7-May-01 2:42
Wojciech Zaremba7-May-01 2:42 
Question[q] How to control the other program's scrollbar? Pin
linugee6-May-01 22:44
linugee6-May-01 22:44 
AnswerRe: [q] How to control the other program's scrollbar? Pin
Christian Graus6-May-01 23:49
protectorChristian Graus6-May-01 23:49 
GeneralRe: [q] How to control the other program's scrollbar? Pin
Hadi Rezaee7-May-01 2:52
Hadi Rezaee7-May-01 2:52 
GeneralRe: [q] How to control the other program's scrollbar? Pin
Christian Graus7-May-01 12:38
protectorChristian Graus7-May-01 12:38 
Generalpl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
6-May-01 21:02
suss6-May-01 21:02 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
l a u r e n6-May-01 21:10
l a u r e n6-May-01 21:10 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
6-May-01 22:59
suss6-May-01 22:59 

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.