Longmcx
Junior Member level 1
i have core for my application
////
void CExbuttonDlg::OnTimer(UINT nIDEvent)
{
char receive ;
DWORD nByte;
ReadFile(hCom, &receive, 1, &nByte, NULL);
if (receive == 'b')
check = true;
}
but if i start my application, it hang up.
i don't know why? please help me
thanks for your attention.
////
void CExbuttonDlg::OnTimer(UINT nIDEvent)
{
char receive ;
DWORD nByte;
ReadFile(hCom, &receive, 1, &nByte, NULL);
if (receive == 'b')
check = true;
}
but if i start my application, it hang up.
i don't know why? please help me
thanks for your attention.