Article View: borland.public.cppbuilder.nativeapi
Article #6182Re: Sorry...... Still Not Working......
From: Ramy
Date: Wed, 01 Jun 2005 11:53
Date: Wed, 01 Jun 2005 11:53
37 lines
1979 bytes
1979 bytes
OK i have found my problem - First, i did not had this line in my code to enable Parity - my_DCB.fParity = 1; // 1 = Enable Parity Checking Also, i have found that for Parity = '1' i need to write - BuildCommDCB( ":19200, M, 8, 1", &my_DCB ); // 'M' For MARKPARITY and that for Parity = '0' i need to write - BuildCommDCB( ":19200, S, 8, 1", &my_DCB ); // 'S' For SPACEPARITY Very strange that something so basic does not appears anywhere in the help files and in the documents on the internet. But still i whould like to know which code is unnecessary in my example, as you maintion in your last post. Thanks :-) Ramy "Ramy" <Ramy@NoMail.com> wrote: > >Sorry, but there is still a problem, as i understand from your >reply i should use 'BuildCommDCB' OR 'SetCommState', NOT both, >but the problem is that when i try to disable the >'BuildCommDCB' command then the 'SetCommState' command that >following it FAIL. > >How do you explain this? > >Thanks.
Technical Details
Message-ID:
<429da1cb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<429c92d6$1@newsgroups.borland.com> <gu4p919ougmd71vo7hs649g486n3j525f0@4ax.com> <429c9779$1@newsgroups.borland.com> <429d6712$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,821a5333e4c794bc X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ramy" <Ramy@NoMail.com> Sender: "Ramy" <Ramy@NoMail.com> Reply-To: "Ramy" <Ramy@NoMail.com> Subject: Re: Sorry...... Still Not Working...... Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.0.27.159 References: <429c92d6$1@newsgroups.borland.com> <gu4p919ougmd71vo7hs649g486n3j525f0@4ax.com> <429c9779$1@newsgroups.borland.com> <429d6712$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <429da1cb$1@newsgroups.borland.com> Date: 1 Jun 2005 04:53:47 -0700 X-Trace: newsgroups.borland.com 1117626827 207.105.83.66 (1 Jun 2005 04:53:47 -0700) Lines: 38 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail