Click here to Skip to main content
15,887,318 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNon Ovelapped Serial I/O Pin
sunny_vc2-Aug-09 23:37
sunny_vc2-Aug-09 23:37 
AnswerRe: Non Ovelapped Serial I/O Pin
«_Superman_»2-Aug-09 23:54
professional«_Superman_»2-Aug-09 23:54 
GeneralRe: Non Ovelapped Serial I/O Pin
sunny_vc3-Aug-09 0:16
sunny_vc3-Aug-09 0:16 
GeneralRe: Non Ovelapped Serial I/O Pin
«_Superman_»3-Aug-09 0:21
professional«_Superman_»3-Aug-09 0:21 
GeneralRe: Non Ovelapped Serial I/O Pin
CPallini3-Aug-09 0:46
mveCPallini3-Aug-09 0:46 
GeneralRe: Non Ovelapped Serial I/O Pin
sunny_vc3-Aug-09 0:59
sunny_vc3-Aug-09 0:59 
GeneralRe: Non Ovelapped Serial I/O Pin
CPallini3-Aug-09 1:17
mveCPallini3-Aug-09 1:17 
GeneralRe: Non Ovelapped Serial I/O Pin
sunny_vc3-Aug-09 2:05
sunny_vc3-Aug-09 2:05 
Even If I have to send data in the same receive thread,
I am unable to do as WaitCommEvent never returns.
My code block is:

 if (!SetCommMask( pc->hCommn, EV_RXCHAR))
 {
     //Error
 }
 for ( ; ; )
 {
 if (WaitCommEvent(pc->hCommn, &dwCommEvent, NULL))
 {

     do
     {
     if (ReadFile(pc->hCommn, &chRead, 1, &dwRead, NULL))
       {
          // A byte has been read; process it.
           pc->CopyRx(chRead);
       }
       else
       {
          // An error occurred in the ReadFile call.

          break;
       }
     }while(dwRead);
 }
else
   // Error in WaitCommEvent.
   break;
 }


Where can I call my send fucntion in this thread, if I have some data to send.
Please suggest.

Regards,
Sunil Kumar

QuestionRe: Non Ovelapped Serial I/O Pin
«_Superman_»3-Aug-09 2:35
professional«_Superman_»3-Aug-09 2:35 
GeneralRe: Non Ovelapped Serial I/O Pin
korvix3-Aug-09 15:42
korvix3-Aug-09 15:42 
QuestionRe: Non Ovelapped Serial I/O Pin
David Crow3-Aug-09 3:56
David Crow3-Aug-09 3:56 
AnswerRe: Non Overlapped Serial I/O Pin
sunny_vc3-Aug-09 4:53
sunny_vc3-Aug-09 4:53 
QuestionSobel - edge detection Pin
adichavan2-Aug-09 22:22
adichavan2-Aug-09 22:22 
AnswerRe: Sobel - edge detection Pin
HimanshuJoshi2-Aug-09 22:47
HimanshuJoshi2-Aug-09 22:47 
GeneralRe: Sobel - edge detection Pin
adichavan2-Aug-09 23:16
adichavan2-Aug-09 23:16 
GeneralRe: Sobel - edge detection PinPopular
Michael Schubert2-Aug-09 23:57
Michael Schubert2-Aug-09 23:57 
GeneralRe: Sobel - edge detection Pin
Chandrasekharan P3-Aug-09 0:05
Chandrasekharan P3-Aug-09 0:05 
GeneralRe: Sobel - edge detection Pin
adichavan3-Aug-09 1:39
adichavan3-Aug-09 1:39 
GeneralRe: Sobel - edge detection Pin
adichavan3-Aug-09 1:42
adichavan3-Aug-09 1:42 
GeneralRe: Sobel - edge detection Pin
Chandrasekharan P3-Aug-09 2:02
Chandrasekharan P3-Aug-09 2:02 
GeneralRe: Sobel - edge detection Pin
CPallini3-Aug-09 0:37
mveCPallini3-Aug-09 0:37 
QuestionWhich way should I select when save image from browser Pin
shi baoshi2-Aug-09 22:02
shi baoshi2-Aug-09 22:02 
AnswerRe: Which way should I select when save image from browser Pin
Code-o-mat3-Aug-09 0:29
Code-o-mat3-Aug-09 0:29 
GeneralRe: Which way should I select when save image from browser [modified] Pin
shi baoshi3-Aug-09 16:15
shi baoshi3-Aug-09 16:15 
GeneralRe: Which way should I select when save image from browser Pin
Code-o-mat3-Aug-09 21:06
Code-o-mat3-Aug-09 21:06 

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.