Re: DCBII

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

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu