1. DCBII

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 message » categorize

2. Re: DCBII

On Tue, 14 Mar 2000 17:58:02 +0100, Kondor Attila <konel at DPG.HU> wrote:

>Hi all,
>
>When I (and probably you) use GetCommState, the first dWord  1C 0 0 0  !!!
>
>--GetCommState result:
>
>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.


  Attila:

   I have a suggestion, Why don't you use GetCommState first and this

   will fill in your DCB structure with the initial settings of your

   of your commport. You might want to copy the structure settings to

   a file. Then change one thing at a time, something like the baudrate

   and try using SetCommState to see if you get an error. This may make

   it easier to find your problem.


  Bernie

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu