Click here to Skip to main content
15,923,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionI got runtime error when I am moving toolbars in my program. Pin
G Haranadh13-Sep-05 0:14
G Haranadh13-Sep-05 0:14 
QuestionSerial communication Pin
Aditi48412-Sep-05 23:59
Aditi48412-Sep-05 23:59 
AnswerRe: Serial communication Pin
MailtoGops13-Sep-05 3:15
MailtoGops13-Sep-05 3:15 
GeneralRe: Serial communication Pin
Aditi48413-Sep-05 3:50
Aditi48413-Sep-05 3:50 
AnswerRe: Serial communication Pin
John R. Shaw13-Sep-05 4:06
John R. Shaw13-Sep-05 4:06 
AnswerRe: Serial communication Pin
Roger Stoltz13-Sep-05 6:35
Roger Stoltz13-Sep-05 6:35 
GeneralRe: Serial communication Pin
Aditi48413-Sep-05 23:26
Aditi48413-Sep-05 23:26 
AnswerRe: Serial communication Pin
Roger Stoltz14-Sep-05 1:00
Roger Stoltz14-Sep-05 1:00 
Have you compared the setup sequences for your app and HyperTerminal with PortMon?
Any diffs?

Aditi484 wrote:
In my code.. I use CloseHandle() to close the serial connection..

::CloseHandle() is the proper call to make.
If you are referring to the code you posted in your first mail you'll never reach ::CloseHandle() since it's outside the while-loop. This should make HT complain about the port being busy.
How do you exit your application? Terminating it with <shift+f5>?

Is it a real RS232 connection you're using or is it some simulated serial connection over USB?

It might be helpful if you could log the setup sequence with PortMon and cut it out and send it in your next post.

--
Roger
AnswerRe: Serial communication Pin
Aditi48414-Sep-05 1:36
Aditi48414-Sep-05 1:36 
GeneralRe: Serial communication Pin
Roger Stoltz14-Sep-05 5:00
Roger Stoltz14-Sep-05 5:00 
AnswerRe: Serial communication Pin
Aditi48415-Sep-05 21:51
Aditi48415-Sep-05 21:51 
QuestionHow to add a Scheduled Task to the Task Scheduler Pin
PravinSingh12-Sep-05 23:55
PravinSingh12-Sep-05 23:55 
AnswerRe: How to add a Scheduled Task to the Task Scheduler Pin
prasad_som13-Sep-05 0:03
prasad_som13-Sep-05 0:03 
AnswerRe: How to add a Scheduled Task to the Task Scheduler Pin
David Crow13-Sep-05 2:30
David Crow13-Sep-05 2:30 
Questionmemory management Pin
Ali Tavakol12-Sep-05 23:55
Ali Tavakol12-Sep-05 23:55 
Questionserver and client Pin
Member 216100412-Sep-05 23:54
Member 216100412-Sep-05 23:54 
QuestionCDC::SelectObject Pin
Nishad S12-Sep-05 23:33
Nishad S12-Sep-05 23:33 
AnswerRe: CDC::SelectObject Pin
ThatsAlok12-Sep-05 23:48
ThatsAlok12-Sep-05 23:48 
AnswerRe: CDC::SelectObject Pin
John R. Shaw13-Sep-05 5:48
John R. Shaw13-Sep-05 5:48 
QuestionLimited number of controls on a dialog? Pin
Mircea Puiu12-Sep-05 22:27
Mircea Puiu12-Sep-05 22:27 
AnswerRe: Limited number of controls on a dialog? Pin
toxcct12-Sep-05 22:30
toxcct12-Sep-05 22:30 
GeneralRe: Limited number of controls on a dialog? Pin
Mircea Puiu12-Sep-05 22:52
Mircea Puiu12-Sep-05 22:52 
GeneralRe: Limited number of controls on a dialog? Pin
toxcct12-Sep-05 22:55
toxcct12-Sep-05 22:55 
GeneralRe: Limited number of controls on a dialog? Pin
Mircea Puiu12-Sep-05 23:05
Mircea Puiu12-Sep-05 23:05 
GeneralRe: Limited number of controls on a dialog? Pin
toxcct12-Sep-05 23:12
toxcct12-Sep-05 23:12 

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.