Article View: borland.public.cppbuilder.nativeapi
Article #6021Re: Getting Crazy, Parity Again!
From: Bob Gonder
Date: Sun, 19 Jun 2005 19:48
Date: Sun, 19 Jun 2005 19:48
24 lines
1724 bytes
1724 bytes
Ramy wrote: >PortDCB.Parity = NOPARITY; // 0-4=no,odd,even,mark,space Not going to get parity with that setting! >I need that fParity will be '1' for parity enabled. Why? My understanding is you want to send parity bits. This shouldn't affect that. It should only matter if you want to READ and REPORT parity errors. Use GetCommMask() Check if EV_ERR is set. If it is not set, then you can't receive parity errors, and the fParity will likely be turned off. Try turning it on before you SetCommState(). Then, have a look at GetCommProperties() and check out the: dwProvCapabilities for PCF_PARITY_CHECK dwSettableParams for SP_PARITY and SP_PARITY_CHECK wSettableStopParity for parity settings you want to use
Technical Details
Message-ID:
<jrhbb1huv2lgnlduhm81do3kl2icka92jq@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42b573b8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1cdafdd48cb76d8c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Getting Crazy, Parity Again! Date: Sun, 19 Jun 2005 12:48:20 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <jrhbb1huv2lgnlduhm81do3kl2icka92jq@4ax.com> References: <42b573b8$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.207.177 X-Trace: newsgroups.borland.com 1119210499 67.77.207.177 (19 Jun 2005 12:48:19 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail