Article View: borland.public.cppbuilder.nativeapi
Article #6024Re: Getting Crazy, Parity Again!
From: Ramy
Date: Mon, 20 Jun 2005 06:27
Date: Mon, 20 Jun 2005 06:27
26 lines
1720 bytes
1720 bytes
Very strange i was sure that GetCommState() only reads the exist state of the parameters, why does command that start with the word 'Get' should change anything?! But i guess that you right, becouse this is what i read in the Microsoft web site - "Use the GetCommState function to retrieve the default settings and use the SetCommState function to make port settings." I understand from that, that GetCommState() set the default parameters.... but again i think that it's very confused that a command that start with the word 'Get' is doing any changings. I'll check it and tell you if it's working (i need to arange a scope device to see the 'Parity' pulse) Ramy. >Just don't call GetCommState() after having set fParity to true :-) >It seems that GetCommState() reset ther DCB struct to something like >default values. > >Michel
Technical Details
Message-ID:
<42b661b4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42b573b8$1@newsgroups.borland.com> <42b5972a@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: "Ramy" <Ramy@NoMail.com> Sender: "Ramy" <Ramy@NoMail.com> Reply-To: "Ramy" <Ramy@NoMail.com> Subject: Re: Getting Crazy, Parity Again! Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.0.27.159 References: <42b573b8$1@newsgroups.borland.com> <42b5972a@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <42b661b4$1@newsgroups.borland.com> Date: 19 Jun 2005 23:27:00 -0700 X-Trace: newsgroups.borland.com 1119248820 207.105.83.66 (19 Jun 2005 23:27:00 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail