C++ (Qt)while(!asleep()) sheep++;
C++ (Qt) virtual bool processCompletionRoutine() { DWORD numberOfBytesTransferred = 0; // это добавь ::GetOverlappedResult(dptr->descriptor, &o, &numberOfBytesTransferred, FALSE); // и это bool ret = false; if (EV_ERR & triggeredEventMask) ret = dptr->processIoErrors(); if (EV_RXCHAR & triggeredEventMask) ret = dptr->startAsyncRead(); return ret; }
C++ (Qt) CommOverlappedEventNotifier(SerialPortPrivate *d, DWORD eventMask, QObject *parent) : AbstractOverlappedEventNotifier(d, CommEvent, false /*Тут false вместо true поставь*/, parent)
C++ (Qt) virtual bool processCompletionRoutine() { DWORD numberOfBytesTransferred = 0; ::GetOverlappedResult(dptr->descriptor, &o, &numberOfBytesTransferred, FALSE); if (EV_ERR & triggeredEventMask) dptr->processIoErrors(); dptr->startAsyncRead(); return true; }