Click here to Skip to main content
15,901,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPlotting graph using MFC Pin
Maynka10-Sep-07 0:15
Maynka10-Sep-07 0:15 
GeneralRe: Plotting graph using MFC Pin
Matthew Faithfull10-Sep-07 0:23
Matthew Faithfull10-Sep-07 0:23 
AnswerRe: Plotting graph using MFC Pin
Cedric Moonen10-Sep-07 0:55
Cedric Moonen10-Sep-07 0:55 
QuestionWill VC 2005 installation affect existing VC 6? Pin
Nishad S9-Sep-07 23:56
Nishad S9-Sep-07 23:56 
AnswerRe: Will VC 2005 installation affect existing VC 6? Pin
Cedric Moonen10-Sep-07 0:06
Cedric Moonen10-Sep-07 0:06 
GeneralRe: Will VC 2005 installation affect existing VC 6? Pin
Nishad S10-Sep-07 1:21
Nishad S10-Sep-07 1:21 
GeneralRe: Will VC 2005 installation affect existing VC 6? Pin
Nibu babu thomas10-Sep-07 3:23
Nibu babu thomas10-Sep-07 3:23 
GeneralRe: Will VC 2005 installation affect existing VC 6? Pin
Nishad S10-Sep-07 19:46
Nishad S10-Sep-07 19:46 
AnswerRe: Will VC 2005 installation affect existing VC 6? Pin
KarstenK10-Sep-07 2:05
mveKarstenK10-Sep-07 2:05 
QuestionFile association with vc6 Pin
followait9-Sep-07 23:44
followait9-Sep-07 23:44 
AnswerRe: File association with vc6 Pin
cp987610-Sep-07 0:59
cp987610-Sep-07 0:59 
AnswerRe: File association with vc6 Pin
Waldermort10-Sep-07 1:05
Waldermort10-Sep-07 1:05 
Questionpost message from one dialog to another dialog Pin
bhogavalli suresh9-Sep-07 23:42
bhogavalli suresh9-Sep-07 23:42 
GeneralRe: post message from one dialog to another dialog Pin
Matthew Faithfull9-Sep-07 23:48
Matthew Faithfull9-Sep-07 23:48 
AnswerRe: post message from one dialog to another dialog Pin
Nishad S9-Sep-07 23:49
Nishad S9-Sep-07 23:49 
QuestionRe: post message from one dialog to another dialog Pin
David Crow10-Sep-07 5:38
David Crow10-Sep-07 5:38 
Questionpostmessage and send message Pin
bhogavalli suresh9-Sep-07 23:33
bhogavalli suresh9-Sep-07 23:33 
AnswerRe: postmessage and send message Pin
Russell'9-Sep-07 23:37
Russell'9-Sep-07 23:37 
AnswerRe: postmessage and send message Pin
ThatsAlok10-Sep-07 2:53
ThatsAlok10-Sep-07 2:53 
AnswerRe: postmessage and send message Pin
David Crow10-Sep-07 5:39
David Crow10-Sep-07 5:39 
QuestionAccessing the serial port in multithreading [modified] Pin
Cedric Moonen9-Sep-07 22:39
Cedric Moonen9-Sep-07 22:39 
GeneralRe: Accessing the serial port in multithreading Pin
Matthew Faithfull9-Sep-07 22:51
Matthew Faithfull9-Sep-07 22:51 
Hmm, a tricky one. I would consider having the same thread doing the reading and writing, taking it's orders from a queue and prioritising writing over reading. In other words do the very short timeout read 1 or 2 msecs then if there is anything to write, write it otherwise go around again and do another read or sleep if no read is required.
Remember on Windows Mobile your reader/writer thread should not have a raised priority if you do this sort of thing or no other thread will ever get a look in as the threading is purely priority based rather than preemptively time sliced.
Remember also that COM ports are relatively slow even in comparison to bandwidths on a mobile device so don't burn processor cycles blocking on a slow port just to make sure it runs flat out. You should easily be able to flood the port or read at full speed with a fraction of the available runtime.

Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: Accessing the serial port in multithreading Pin
Cedric Moonen9-Sep-07 23:40
Cedric Moonen9-Sep-07 23:40 
GeneralRe: Accessing the serial port in multithreading Pin
Matthew Faithfull9-Sep-07 23:43
Matthew Faithfull9-Sep-07 23:43 
AnswerRe: Accessing the serial port in multithreading Pin
Roger Stoltz10-Sep-07 0:23
Roger Stoltz10-Sep-07 0:23 

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.