Click here to Skip to main content
15,886,734 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionDrive's last formatted date/time Pin
vipin_nvk9-Sep-07 22:00
vipin_nvk9-Sep-07 22:00 
QuestionDraw on the none-client area [modified] Pin
kcynic9-Sep-07 21:47
kcynic9-Sep-07 21:47 
AnswerRe: Draw on the none-client area Pin
Jason Teagle9-Sep-07 22:14
Jason Teagle9-Sep-07 22:14 
GeneralRe: Draw on the none-client area Pin
kcynic9-Sep-07 22:49
kcynic9-Sep-07 22:49 
AnswerRe: Draw on the none-client area Pin
Naveen9-Sep-07 22:32
Naveen9-Sep-07 22:32 
GeneralRe: Draw on the none-client area Pin
kcynic9-Sep-07 22:50
kcynic9-Sep-07 22:50 
GeneralRe: Draw on the none-client area Pin
Naveen9-Sep-07 23:15
Naveen9-Sep-07 23:15 
GeneralRe: Draw on the none-client area Pin
kcynic10-Sep-07 16:31
kcynic10-Sep-07 16:31 
QuestionChild-process without parents Pin
baerten9-Sep-07 21:31
baerten9-Sep-07 21:31 
AnswerRe: Child-process without parents [modified] Pin
Stephen Hewitt9-Sep-07 22:26
Stephen Hewitt9-Sep-07 22:26 
GeneralRe: Child-process without parents Pin
baerten9-Sep-07 22:50
baerten9-Sep-07 22:50 
GeneralRe: Child-process without parents Pin
Stephen Hewitt10-Sep-07 14:37
Stephen Hewitt10-Sep-07 14:37 
GeneralRe: Child-process without parents Pin
baerten10-Sep-07 21:52
baerten10-Sep-07 21:52 
GeneralRe: Child-process without parents Pin
Stephen Hewitt10-Sep-07 22:05
Stephen Hewitt10-Sep-07 22:05 

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.