Click here to Skip to main content
15,908,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Now, how to delete? Pin
Astricks11-Feb-07 22:48
Astricks11-Feb-07 22:48 
Questionclass library Pin
dalbhide bipin11-Feb-07 21:03
dalbhide bipin11-Feb-07 21:03 
AnswerRe: class library Pin
Cedric Moonen11-Feb-07 21:10
Cedric Moonen11-Feb-07 21:10 
GeneralRe: class library Pin
dalbhide bipin11-Feb-07 21:37
dalbhide bipin11-Feb-07 21:37 
GeneralRe: class library Pin
Cedric Moonen11-Feb-07 23:15
Cedric Moonen11-Feb-07 23:15 
QuestionThe best place for ReadFile() Pin
awwase11-Feb-07 19:45
awwase11-Feb-07 19:45 
AnswerRe: The best place for ReadFile() Pin
Ram Murali11-Feb-07 20:19
Ram Murali11-Feb-07 20:19 
AnswerRe: The best place for ReadFile() Pin
Roger Stoltz11-Feb-07 21:58
Roger Stoltz11-Feb-07 21:58 
Have a look at Joe Newcomer's article about a threaded solution to serial programming: clickety[^].
In the article Joe uses UI threads. I've developed my own with worker threads.

In addition to Joe's article you have to use ::SetCommState() in order to set baudrate and such. You should also set the timeouts for the read and write operations with ::SetCommTimeouts(). I usually set ReadIntervalTimeout and ReadTotalTimeoutMultiplier to MAXDWORD to get a special behaviour where a read operation expires after ReadTotalTimeoutConstant ms even if nothing has been received. In my opinion a reasonable value for ReadTotalTimeoutConstant would be 50 ms.

Read more here:
::SetCommState()[^]
::SetCommTimeouts()[^]


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

GeneralRe: The best place for ReadFile() Pin
awwase12-Feb-07 4:04
awwase12-Feb-07 4:04 
GeneralRe: The best place for ReadFile() Pin
Roger Stoltz12-Feb-07 4:21
Roger Stoltz12-Feb-07 4:21 
QuestionRight Justification of Text Pin
T.RATHA KRISHNAN11-Feb-07 19:06
T.RATHA KRISHNAN11-Feb-07 19:06 
AnswerRe: Right Justification of Text Pin
Naveen11-Feb-07 19:52
Naveen11-Feb-07 19:52 
GeneralRe: Right Justification of Text Pin
T.RATHA KRISHNAN11-Feb-07 20:32
T.RATHA KRISHNAN11-Feb-07 20:32 
GeneralRe: Right Justification of Text Pin
Naveen11-Feb-07 20:50
Naveen11-Feb-07 20:50 
GeneralRe: Right Justification of Text Pin
Hamid_RT12-Feb-07 6:50
Hamid_RT12-Feb-07 6:50 
QuestionHow to mimic the Windows XP Welcome Screen in MFC ? Pin
erajsri11-Feb-07 18:22
erajsri11-Feb-07 18:22 
AnswerRe: How to mimic the Windows XP Welcome Screen in MFC ? Pin
Waldermort11-Feb-07 20:47
Waldermort11-Feb-07 20:47 
GeneralRe: How to mimic the Windows XP Welcome Screen in MFC ? Pin
erajsri11-Feb-07 20:57
erajsri11-Feb-07 20:57 
GeneralRe: How to mimic the Windows XP Welcome Screen in MFC ? Pin
Waldermort11-Feb-07 21:17
Waldermort11-Feb-07 21:17 
QuestionStatus Pane Pin
T.RATHA KRISHNAN11-Feb-07 17:50
T.RATHA KRISHNAN11-Feb-07 17:50 
QuestionRe: Status Pane Pin
prasad_som11-Feb-07 17:54
prasad_som11-Feb-07 17:54 
AnswerRe: Status Pane Pin
T.RATHA KRISHNAN11-Feb-07 18:12
T.RATHA KRISHNAN11-Feb-07 18:12 
QuestionRe: Status Pane Pin
prasad_som11-Feb-07 18:16
prasad_som11-Feb-07 18:16 
AnswerRe: Status Pane Pin
T.RATHA KRISHNAN11-Feb-07 18:23
T.RATHA KRISHNAN11-Feb-07 18:23 
AnswerRe: Status Pane Pin
prasad_som11-Feb-07 18:28
prasad_som11-Feb-07 18:28 

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.