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....
Type: Posts; User: yoxler
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....
I'm creating a thread like this:
m_pCListenThreadList[0] = new CListenThread();
m_pCListenThreadList[0]->CreateThread(CREATE_SUSPENDED, 0);
m_pCListenThreadList[0]->SetParent(this,...
Thank you! looks really nice! :D
thank you! do you have an example I can look at?
I've got a nice little button:
void CTest2Dlg::OnButton1()
{
MyThread newThread(&m_SerialText, &m_SerialTextControl, this);
newThread.CreateNewThread();
}
m_SerialText is a variable...
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 :)
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.
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...