Click here to Skip to main content
16,005,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Question on making apps Pin
CPallini24-May-07 20:53
mveCPallini24-May-07 20:53 
QuestionC# dll from MFC application Pin
nzhuda24-May-07 15:24
nzhuda24-May-07 15:24 
AnswerRe: C# dll from MFC application Pin
CPallini24-May-07 20:25
mveCPallini24-May-07 20:25 
QuestionUnexplained API Pin
dellthinker24-May-07 14:53
dellthinker24-May-07 14:53 
AnswerRe: Unexplained API Pin
Michael Dunn24-May-07 16:01
sitebuilderMichael Dunn24-May-07 16:01 
QuestionBlocking Certain Keyboard Input Pin
Michael Sadlon24-May-07 13:42
Michael Sadlon24-May-07 13:42 
AnswerRe: Blocking Certain Keyboard Input Pin
Perspx25-May-07 6:34
Perspx25-May-07 6:34 
QuestionAsync Serial Port Read Pin
RMLPilot24-May-07 12:18
RMLPilot24-May-07 12:18 
I have a requirement to read data from a serial port and send it out over a network port. The data must be sent when either of these two conditions are met:

1) 1400 bytes read.
2) 20 milliseconds have elapsed since the last read finished (if no data is present wait another 20 ms or until condition 1)

To try an meet these goals I am using overlapped IO. Here is the read:

ReadFile(hComm, ReadBuffer, 1400, &dwRead, &osReader);

I am trying to use a Waitable Timer to signal the 20 ms for requirement 2. The problem is how do I stop the current read operation and get all the characters that have been read when the timer expires? I tried using WaitForMultipleObjects but I am stuck on what to do when the timer expires.

I am writing this application in VC++ using Visual Studio 2005, target platform is Windows XP.
AnswerRe: Async Serial Port Read Pin
Hans Dietrich24-May-07 13:14
mentorHans Dietrich24-May-07 13:14 
GeneralRe: Async Serial Port Read Pin
RMLPilot25-May-07 2:05
RMLPilot25-May-07 2:05 
GeneralRe: Async Serial Port Read Pin
Hans Dietrich25-May-07 5:34
mentorHans Dietrich25-May-07 5:34 
AnswerRe: Async Serial Port Read Pin
JudyL_MD25-May-07 2:46
JudyL_MD25-May-07 2:46 
QuestionHelp plz i am Almost next to wall and i will hit my head on it HARD Pin
Immunity1824-May-07 12:00
Immunity1824-May-07 12:00 
AnswerRe: Help plz i am Almost next to wall and i will hit my head on it HARD Pin
Mark Salsbery24-May-07 12:36
Mark Salsbery24-May-07 12:36 
GeneralRe: Help plz i am Almost next to wall and i will hit my head on it HARD Pin
Immunity1824-May-07 12:38
Immunity1824-May-07 12:38 
GeneralRe: Help plz i am Almost next to wall and i will hit my head on it HARD Pin
Immunity1824-May-07 12:40
Immunity1824-May-07 12:40 
GeneralRe: Help plz i am Almost next to wall and i will hit my head on it HARD Pin
Immunity1824-May-07 12:48
Immunity1824-May-07 12:48 
GeneralRe: Help plz i am Almost next to wall and i will hit my head on it HARD Pin
Mark Salsbery24-May-07 12:53
Mark Salsbery24-May-07 12:53 
AnswerRe: Help plz i am Almost next to wall and i will hit my head on it HARD Pin
Michael Dunn24-May-07 14:29
sitebuilderMichael Dunn24-May-07 14:29 
QuestionAfxMessageBox stop working after split the frame Pin
gurucplusplus24-May-07 11:11
gurucplusplus24-May-07 11:11 
AnswerRe: AfxMessageBox stop working after split the frame Pin
Nelek24-May-07 21:33
protectorNelek24-May-07 21:33 
GeneralRe: AfxMessageBox stop working after split the frame Pin
gurucplusplus25-May-07 7:07
gurucplusplus25-May-07 7:07 
GeneralRe: AfxMessageBox stop working after split the frame Pin
Nelek31-May-07 6:11
protectorNelek31-May-07 6:11 
Questionisletter' : not all control paths return a value Pin
Immunity1824-May-07 10:59
Immunity1824-May-07 10:59 
AnswerRe: isletter' : not all control paths return a value Pin
Mark Salsbery24-May-07 11:13
Mark Salsbery24-May-07 11:13 

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.