asterix
October 13th, 2002, 03:55 PM
Hello people! Who can give me advise why i cannot read date from port?
I open the port with CreateFile
after i fill in DCB:
dcb.BaudRate= CBR_9600;
dcb.fDtrControl= DTR_CONTROL_ENABLE;
dcb.BaudRat= CBR_2400;
dcb.fDtrControl= DTR_CONTROL_DISABLE;
dcb.fOutX = FALSE;
dcb.fInX = FALSE;
dcb.ByteSize = 8;
dcb.Parity = NOPARITY;
dcb.StopBits = ONESTOPBIT;
dcb.fRtsControl = RTS_CONTROL_ENABLE;
After this i send some commands with remote control unit
But, when i use function : ReadFile, i get nothing, onli ZERO why???
I open the port with CreateFile
after i fill in DCB:
dcb.BaudRate= CBR_9600;
dcb.fDtrControl= DTR_CONTROL_ENABLE;
dcb.BaudRat= CBR_2400;
dcb.fDtrControl= DTR_CONTROL_DISABLE;
dcb.fOutX = FALSE;
dcb.fInX = FALSE;
dcb.ByteSize = 8;
dcb.Parity = NOPARITY;
dcb.StopBits = ONESTOPBIT;
dcb.fRtsControl = RTS_CONTROL_ENABLE;
After this i send some commands with remote control unit
But, when i use function : ReadFile, i get nothing, onli ZERO why???