Click here to Skip to main content
15,919,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create a child window Pin
Cedric Moonen11-May-06 0:56
Cedric Moonen11-May-06 0:56 
GeneralRe: Create a child window Pin
Russell'11-May-06 0:05
Russell'11-May-06 0:05 
GeneralRe: Create a child window Pin
v3r50r11-May-06 0:07
v3r50r11-May-06 0:07 
GeneralRe: Create a child window Pin
Russell'11-May-06 0:17
Russell'11-May-06 0:17 
Questioncharset for the current language OS. Pin
Sandeep. Vaidya10-May-06 23:33
Sandeep. Vaidya10-May-06 23:33 
QuestionSerial Port interrupt Pin
aasstt10-May-06 22:55
aasstt10-May-06 22:55 
AnswerRe: Serial Port interrupt Pin
Cedric Moonen10-May-06 23:02
Cedric Moonen10-May-06 23:02 
GeneralRe: Serial Port interrupt Pin
Maxwell Chen10-May-06 23:34
Maxwell Chen10-May-06 23:34 
Cedric Moonen wrote:
to spawn a thread that will poll the serial port for data.


From my experience in the past, polling eats processor resource even though we have added something in the loop in the thread like Sleep(1).


Personally I prefer to feed an event to the serial port API, and use WaitForMultipleObjects or WaitForSingleObject ... Big Grin | :-D


Cedric Moonen wrote:
This may sound 'complicated' but if you don't want to freeze your GUI, it is the best way of doing that.


Yes this is so true! Basically all those communication related applications have to be designed in multi-threading to prevent from GUI frozen.


Maxwell Chen
AnswerRe: Serial Port interrupt Pin
kakan11-May-06 0:37
professionalkakan11-May-06 0:37 
AnswerRe: Serial Port interrupt Pin
ThatsAlok11-May-06 19:52
ThatsAlok11-May-06 19:52 
AnswerRe: Update AllViews To a Doc from a Dialog Pin
Russell'10-May-06 23:03
Russell'10-May-06 23:03 
GeneralRe: Update AllViews To a Doc from a Dialog Pin
Hamid_RT11-May-06 0:16
Hamid_RT11-May-06 0:16 
JokeRe: Update AllViews To a Doc from a Dialog Pin
Russell'11-May-06 0:29
Russell'11-May-06 0:29 
GeneralRe: Update AllViews To a Doc from a Dialog Pin
Hamid_RT11-May-06 0:34
Hamid_RT11-May-06 0:34 
QuestionGet a child window? Pin
see me10-May-06 22:33
see me10-May-06 22:33 
AnswerRe: Get a child window? Pin
Russell'10-May-06 23:09
Russell'10-May-06 23:09 
AnswerRe: Get a child window? Pin
Hamid_RT10-May-06 23:11
Hamid_RT10-May-06 23:11 
GeneralRe: Get a child window? Pin
see me11-May-06 0:45
see me11-May-06 0:45 
GeneralRe: Get a child window? Pin
Russell'11-May-06 2:06
Russell'11-May-06 2:06 
AnswerRe: Get a child window? Pin
Nibu babu thomas10-May-06 23:16
Nibu babu thomas10-May-06 23:16 
GeneralRe: Get a child window? Pin
Nishad S10-May-06 23:43
Nishad S10-May-06 23:43 
AnswerRe: Get a child window? Pin
ThatsAlok11-May-06 5:00
ThatsAlok11-May-06 5:00 
QuestionHow to Interpret this in plain language Pin
Scorpio10-May-06 22:15
Scorpio10-May-06 22:15 
AnswerRe: How to Interpret this in plain language Pin
Cedric Moonen10-May-06 22:18
Cedric Moonen10-May-06 22:18 
GeneralRe: How to Interpret this in plain language Pin
Scorpio10-May-06 22:26
Scorpio10-May-06 22:26 

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.