Click here to Skip to main content
16,005,181 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dont send error after exiting the application Pin
Hamid_RT25-Apr-07 8:39
Hamid_RT25-Apr-07 8:39 
QuestionSatellite DLLs Pin
Cvaji23-Apr-07 20:06
Cvaji23-Apr-07 20:06 
AnswerRe: Satellite DLLs Pin
Karismatic23-Apr-07 20:23
Karismatic23-Apr-07 20:23 
AnswerRe: Satellite DLLs Pin
Karismatic23-Apr-07 20:32
Karismatic23-Apr-07 20:32 
GeneralRe: Satellite DLLs Pin
Cvaji24-Apr-07 0:14
Cvaji24-Apr-07 0:14 
QuestionSerial Port Communication in MFC Pin
QuickDeveloper23-Apr-07 20:02
QuickDeveloper23-Apr-07 20:02 
AnswerRe: Serial Port Communication in MFC Pin
CPallini23-Apr-07 20:47
mveCPallini23-Apr-07 20:47 
AnswerRe: Serial Port Communication in MFC Pin
Roger Stoltz24-Apr-07 1:27
Roger Stoltz24-Apr-07 1:27 
QuickDeveloper wrote:
if i Start a thread and use WaitCommEvent then the Program gets stuck up in WriteFile.....I am not using Overlapped I/O


If you're not using overlapped I/O, you can only issue one request at any given time to the driver. If you issue another it will block waiting for the previously issued request, which is exactly what happens in your case: ::WaitCommEvent() is waiting for something to happen before returning while blocking the ::WriteFile() call.

If you're writing an application that is supposed to issue both read and write requests, you should only consider the overlapped alternative.
Have a look at an example on overlapped I/O here[^].



"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

GeneralRe: Serial Port Communication in MFC Pin
QuickDeveloper24-Apr-07 6:29
QuickDeveloper24-Apr-07 6:29 
QuestionGetting a particular test suite in cppunit testcases Pin
krischowdary23-Apr-07 19:46
krischowdary23-Apr-07 19:46 
AnswerRe: Getting a particular test suite in cppunit testcases Pin
Ranjoy Guha24-Apr-07 2:14
Ranjoy Guha24-Apr-07 2:14 
QuestionProblems in creating file Pin
sonavi23-Apr-07 19:41
sonavi23-Apr-07 19:41 
AnswerRe: Problems in creating file Pin
kakan23-Apr-07 19:45
professionalkakan23-Apr-07 19:45 
GeneralRe: Problems in creating file Pin
sonavi23-Apr-07 20:08
sonavi23-Apr-07 20:08 
GeneralRe: Problems in creating file Pin
kakan23-Apr-07 20:47
professionalkakan23-Apr-07 20:47 
AnswerRe: Problems in creating file Pin
Hamid_RT23-Apr-07 19:54
Hamid_RT23-Apr-07 19:54 
AnswerRe: Problems in creating file Pin
Michael Dunn23-Apr-07 20:27
sitebuilderMichael Dunn23-Apr-07 20:27 
AnswerRe: Problems in creating file Pin
vijay_aroli23-Apr-07 23:09
vijay_aroli23-Apr-07 23:09 
QuestionCSplitterWnd Pin
Nishad S23-Apr-07 19:33
Nishad S23-Apr-07 19:33 
AnswerRe: CSplitterWnd Pin
Parthi_Appu23-Apr-07 19:54
Parthi_Appu23-Apr-07 19:54 
GeneralRe: CSplitterWnd Pin
Nishad S23-Apr-07 21:07
Nishad S23-Apr-07 21:07 
GeneralRe: CSplitterWnd Pin
Nibu babu thomas24-Apr-07 0:32
Nibu babu thomas24-Apr-07 0:32 
GeneralRe: CSplitterWnd Pin
Mark Salsbery24-Apr-07 8:46
Mark Salsbery24-Apr-07 8:46 
QuestionActive-x component instance creation takes more time. Pin
praveen kumar agarwal23-Apr-07 18:50
praveen kumar agarwal23-Apr-07 18:50 
QuestionSetup file pbm Pin
prathuraj23-Apr-07 18:35
prathuraj23-Apr-07 18:35 

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.