hey dude...![]()
hope this helps....
(i'm assuming u are sending this to a device connected to serial port)
hopefully this helps....Code:byte buf[4]; buf[1] = 0xAA; buf[2] = 0x01; buf[3] = 0x00; buf[4] = ...... // u can do ur calculations for ur checksum here dude WriteFile (m_hCommPort,buf,sizeof(buf),&dwBytesWritten ,&ov);....
later![]()




Reply With Quote