S
Steffen
Hello!
I'm excanging data with an microcontroller (Atmel) via the serial port.
My C++ programm is written in Microsoft Visual Studio .net (7)
I have the following problem:
If I disconnect my controller, then the programm hangs up in the following
line:
WaitCommEvent (m_hCommPort, &dwEvtMask, 0);
Of course it does - but I need to get a TimeOut. After 50 ms the function
should quit and return an timeout message.
Can anybody help me? Would really be great.
Thank you in advance!
Best regards
Steffen
I'm excanging data with an microcontroller (Atmel) via the serial port.
My C++ programm is written in Microsoft Visual Studio .net (7)
I have the following problem:
If I disconnect my controller, then the programm hangs up in the following
line:
WaitCommEvent (m_hCommPort, &dwEvtMask, 0);
Of course it does - but I need to get a TimeOut. After 50 ms the function
should quit and return an timeout message.
Can anybody help me? Would really be great.
Thank you in advance!
Best regards
Steffen