Click here to Skip to main content
15,921,884 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error in Access DB "Attempt to Update or Delete failed." and "Recordset is read-only" Pin
Le@rner11-Jun-08 23:41
Le@rner11-Jun-08 23:41 
AnswerRe: error in Access DB "Attempt to Update or Delete failed." and "Recordset is read-only" Pin
David Crow12-Jun-08 4:23
David Crow12-Jun-08 4:23 
QuestionDoubt in Serial communication Pin
kuttiam11-Jun-08 19:47
kuttiam11-Jun-08 19:47 
AnswerRe: Doubt in Serial communication Pin
Cedric Moonen11-Jun-08 20:44
Cedric Moonen11-Jun-08 20:44 
GeneralRe: Doubt in Serial communication Pin
kuttiam11-Jun-08 21:22
kuttiam11-Jun-08 21:22 
GeneralRe: Doubt in Serial communication Pin
Cedric Moonen11-Jun-08 21:42
Cedric Moonen11-Jun-08 21:42 
AnswerRe: Doubt in Serial communication Pin
buntyrolln12-Jun-08 2:09
buntyrolln12-Jun-08 2:09 
AnswerRe: Doubt in Serial communication Pin
buntyrolln12-Jun-08 2:17
buntyrolln12-Jun-08 2:17 
Continuation of above reply ....
you can use overlapped-IO operation for communication with serial com port.

Read code snippet for overlapped-IO is given below:

DWORD dwRead;
BOOL fWaitingOnRead = FALSE;
OVERLAPPED osReader = {0};

// Create the overlapped event. Must be closed before exiting
// to avoid a handle leak.
osReader.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);

if (osReader.hEvent == NULL)
   // Error creating overlapped event; abort.

if (!fWaitingOnRead) {
   // Issue read operation.
   if (!ReadFile(hComm, lpBuf, READ_BUF_SIZE, &dwRead, &osReader)) {
      if (GetLastError() != ERROR_IO_PENDING)     // read not delayed?
         // Error in communications; report it.
      else
         fWaitingOnRead = TRUE;
   }
   else {    
      // read completed immediately
      HandleASuccessfulRead(lpBuf, dwRead);
    }
}


buntyrolln

QuestionHow can get Index of Current Save Record in Access Database? Pin
Le@rner11-Jun-08 19:21
Le@rner11-Jun-08 19:21 
AnswerRe: How can get Index of Current Save Record in Access Database? Pin
David Crow12-Jun-08 4:25
David Crow12-Jun-08 4:25 
AnswerCP IGNORE Pin
leckey12-Jun-08 17:44
leckey12-Jun-08 17:44 
QuestionUse of Keyboard on ListCtrl. Pin
Le@rner11-Jun-08 19:14
Le@rner11-Jun-08 19:14 
AnswerRe: Use of Keyboard on ListCtrl. Pin
Naveen11-Jun-08 19:42
Naveen11-Jun-08 19:42 
GeneralRe: Use of Keyboard on ListCtrl. Pin
Le@rner11-Jun-08 20:03
Le@rner11-Jun-08 20:03 
GeneralRe: Use of Keyboard on ListCtrl. Pin
Naveen11-Jun-08 20:15
Naveen11-Jun-08 20:15 
GeneralRe: Use of Keyboard on ListCtrl. Pin
Le@rner11-Jun-08 20:38
Le@rner11-Jun-08 20:38 
QuestionHow can get roundoff value? Pin
Le@rner11-Jun-08 18:23
Le@rner11-Jun-08 18:23 
AnswerRe: How can get roundoff value? Pin
_AnsHUMAN_ 11-Jun-08 18:45
_AnsHUMAN_ 11-Jun-08 18:45 
GeneralRe: How can get roundoff value? Pin
Le@rner11-Jun-08 18:53
Le@rner11-Jun-08 18:53 
AnswerRe: How can get roundoff value? [modified] Pin
Rajesh R Subramanian11-Jun-08 19:03
professionalRajesh R Subramanian11-Jun-08 19:03 
GeneralRe: How can get roundoff value? Pin
Saurabh.Garg11-Jun-08 19:12
Saurabh.Garg11-Jun-08 19:12 
GeneralRe: How can get roundoff value? Pin
Rajesh R Subramanian11-Jun-08 21:47
professionalRajesh R Subramanian11-Jun-08 21:47 
GeneralRe: How can get roundoff value? Pin
Saurabh.Garg11-Jun-08 21:48
Saurabh.Garg11-Jun-08 21:48 
Questiondoes declare variables must before functionary code in VS2005 using C language? Pin
CooperWu11-Jun-08 17:29
CooperWu11-Jun-08 17:29 
AnswerRe: does declare variables must before functionary code in VS2005 using C language? Pin
Saurabh.Garg11-Jun-08 17:53
Saurabh.Garg11-Jun-08 17:53 

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.