Search:

Type: Posts; User: yoxler

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    4,502

    Cancel WaitCommEvent on win2k?

    Hi Gurus!

    I've got a problem with canceling WaitCommEvent() under windows 2000. This piece of code below works fine under win95.

    Im creating several threads, one for each com port to listen to....
  2. Replies
    1
    Views
    1,471

    Killing a thread which is waiting

    I'm creating a thread like this:
    m_pCListenThreadList[0] = new CListenThread();
    m_pCListenThreadList[0]->CreateThread(CREATE_SUSPENDED, 0);
    m_pCListenThreadList[0]->SetParent(this,...
  3. Replies
    7
    Views
    4,684

    Thank you! looks really nice! :D

    Thank you! looks really nice! :D
  4. Replies
    7
    Views
    4,684

    thank you! do you have an example I can look at?

    thank you! do you have an example I can look at?
  5. Replies
    7
    Views
    4,684

    Update text box i a thread?

    I've got a nice little button:
    void CTest2Dlg::OnButton1()
    {
    MyThread newThread(&m_SerialText, &m_SerialTextControl, this);

    newThread.CreateNewThread();
    }

    m_SerialText is a variable...
  6. Thread: WaitCommEvent?

    by yoxler
    Replies
    4
    Views
    5,053

    Thank you for youre help but I solved it finally....

    Thank you for youre help but I solved it finally. I did a bounch of stuff but the line that got it to work was
    SetCommMask(hComm, EV_RXCHAR);

    WaitCommEvent didnt know what to wait for :)
  7. Thread: WaitCommEvent?

    by yoxler
    Replies
    4
    Views
    5,053

    exactly! It just stops at: ...

    exactly!

    It just stops at:
    WaitCommEvent(hComm, &dwEvtMask,&overlapped);

    I know that something comes through the serial port so I cannot understand why it just waits.
  8. Thread: WaitCommEvent?

    by yoxler
    Replies
    4
    Views
    5,053

    WaitCommEvent?

    Hi!

    Im writing a software which should listen to the serial port. It works but I do not want to loop alla the time to see if something has come.

    There I found WaitCommEvent() which sounded...
Results 1 to 8 of 8