DCBII

new topic     » topic index » view thread      » older message » newer message

Ez egy tobb reszbol allo, MIME formatumu level.

--18706-4557-31619-953053208

Hi all,

>   Attila:
>  Wouldn,t DCBlength be #50 00 00 00   -- which is 80 bytes
>  Bernie

Yes,
--in WIN32.HLP (11 279 097 byte):
the DCB structure 78 byte (+reserved word), and ByteSize offset = 80  bytes

but if I used it  in the SetCommState, the result=0

When I (and probably you) use GetCommState, the first dWord  1C 0 0 0  !!!

--GetCommState result:
 1C 0 0 0                               --DCBlength
 B0 4 0 0                       --BaudRate
 11 30 0 0 0 0 FF FF FF FF              ----------- what is this??
 8                              --ByteSize   --offset = 19 (original 70)
 0                              --Parity
 0                              --StopBits
11                             --XonChar
13                             --XoffChar
 0 0 0 0 0                      ----------- what is this??

If I use BuildCommDCB with 1C length DCB, the result is succes.
The SetCommState, GettCommState are also.

I attached in dcb_try.zip dcb_try.exw. It uses com2  and makes dcb_try.txt
for demo.
I'd like if someone help to understand this.

Thanks
Attila Kondor


--18706-4557-31619-953053208

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu