🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6229

Re: Please help, Parity does Not Working Again........

#6229
From: Ramy
Date: Sun, 05 Jun 2005 08:03
40 lines
2078 bytes

Thanks very much, only later today i'll have a chance to test
it, i'll do that and i'll let you know later.

Thanks for your help :-)

Ramy.



Bob Gonder <notbg@notmindspring.invalid> wrote:
>Ramy wrote:
>
>>int InitCommunication( void )
>>{
>>  char    ComName[30] = "COM1";
>>  HANDLE  ComHndl = NULL;
>>  DCB     my_DCB;
>
>	DCB	my_DCB = {sizeof(DCB),0};
>
>>  ComHndl = CreateFile( ComName, GENERIC_WRITE + GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); 
>>
>>  if ( ComHndl == INVALID_HANDLE_VALUE )
>>    return 0;
>>
>>  my_DCB.DCBlength = sizeof( my_DCB );
>//  my_DCB.DCBlength = sizeof( my_DCB ); set in declaration
>
>move this here:
>>  if ( !BuildCommDCB( "COM1:19200, M, 8, 1", &my_DCB ) )
>>    return 0;
>
>Stop the program here in the debugger and inspect my_DCB
>See which fields have been set and which have not.
>Don't set again the fields that have been properly set.
>Set any fields that don't have the proper settings.
>
> . . . . .  
Technical Details
Message-ID: <42a2b1e8$1@newsgroups.borland.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-mail
References: <429ddcd0$1@newsgroups.borland.com> <hlrr9117ici0n26ua1vmn2odmbri4mornt@4ax.com> <429ebbbf$1@newsgroups.borland.com> <429ebe00$1@newsgroups.borland.com> <gmdu911tosvsi52h9nhjg5s59406ea2q50@4ax.com> <42a18eb9$1@newsgroups.borland.com> <29n3a15oqdll7ma4t0jorm8og5nfqu3ttt@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,499887f6c1e08a34
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: Please help, Parity does Not Working Again........ 
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.0.27.159     
References: <429ddcd0$1@newsgroups.borland.com> <hlrr9117ici0n26ua1vmn2odmbri4mornt@4ax.com> <429ebbbf$1@newsgroups.borland.com> <429ebe00$1@newsgroups.borland.com> <gmdu911tosvsi52h9nhjg5s59406ea2q50@4ax.com> <42a18eb9$1@newsgroups.borland.com> <29n3a15oqdll7ma4t0jorm8og5nfqu3ttt@4ax.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <42a2b1e8$1@newsgroups.borland.com>
Date: 5 Jun 2005 01:03:52 -0700
X-Trace: newsgroups.borland.com 1117958632 207.105.83.66 (5 Jun 2005 01:03:52 -0700)
Lines: 41
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