Hi,

I'm developing and application that uses a DAQ(Digital Acquisition) Card on Windows.
In the sample examples there is this piece of code:
Qt Code:
  1. IntThread(void* pArg)
  2. {
  3. while (1) {
  4. if (WaitForSingleObject(hEvent[0], INFINITE) == WAIT_OBJECT_0) {
  5. int_count++;
  6. ResetEvent(hEvent[0]);
  7. InvalidateRect(hMainWnd, NULL, FALSE);
  8. }
  9. }
  10. _endthread();
  11. }
To copy to clipboard, switch view to plain text mode 

I don't understand how to reimplement the "WaitForSingleObject" function.
As I understand, the DAQ card driver sends an event that is catched on this function, so maybe is the only way to get the driver event processed?

Thanks,