🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Sorry...... Still Not Working......

#6279
From: Ramy
Date: Wed, 01 Jun 2005 07:43
41 lines
1973 bytes
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. 


"Ramy" <Ramy@NoMail.com> wrote:
>
>Wow thanks very much! it's a part of code that i took from 
>another project, and i never noticed that, thanks! :-)
>
>Ramy
>
>
>
>>Well, if you are still using this code:
>>
>>> my_DCB.Parity = MARKPARITY;
>>>     strcat( com_params, ":9600, N, 8, 1" );
>> 
>>> if ( !BuildCommDCB( com_params, &my_DCB ) )      // Fills DCB Structure with Com Values
>>>     return FAIL;
>
>  .
>  .
>  .
>  .
>  .
>
>>place. Choose one method (manual or BuildCommDCB() ) and use only
>>that.
>>
>>>  if ( !SetCommState( ComHndl, &my_DCB ) )                                     // Configures Com Port
>>>    return FAIL;
>
Technical Details
Message-ID: <429d6712$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!fr.ip.ndsoftware.net!proxad.net!gatel-ffm!gatel-ffm!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <429c92d6$1@newsgroups.borland.com> <gu4p919ougmd71vo7hs649g486n3j525f0@4ax.com> <429c9779$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: 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>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <429d6712$1@newsgroups.borland.com>
Date: 1 Jun 2005 00:43:14 -0700
X-Trace: newsgroups.borland.com 1117611794 207.105.83.66 (1 Jun 2005 00:43:14 -0700)
Lines: 42
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!fr.ip.ndsoftware.net!proxad.net!gatel-ffm!gatel-ffm!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail