🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TportControl von Vladimir Afanasyev

#15641
From: Vladimir Afanasyev
Date: Thu, 19 Jun 2003 13:48
44 lines
2325 bytes
Hi,
Thank you for feedback.
It is really my bug. The solution is adding 
some internal function for set/get property.
Thank you again.
I'll send you update tomorrow.
Best Regards,
Vladimir.

"Tilo Samulewitz" <tilo@netsketch.de> wrote:
>I'm using the TPortControl it's really nice, but I have one Problem. I want
>to change the speed during the program is running.
>
>with this code
>
>void __fastcall TForm1::OldNoseClick(TObject *Sender)
>{
>  old = true;
>  PortControl1->BaudRate = S009600;  // How can I use this?
>  PortControl1->OpenPort();
>  PortControl1->StartSession(true);
>  if(PortControl1->WriteData("!V\r\n",5,&wrNum)<0)ShowMessage("Error");
>}
>//--------------------------------------------------------------------------
>-
>
>void __fastcall TForm1::NewNoseClick(TObject *Sender)
>{
>  old = false;
>  PortControl1->BaudRate = S056000; // How can I use this?
>  PortControl1->OpenPort();
>  PortControl1->StartSession(true);
>}
>//--------------------------------------------------------------------------
>-
>
>but it doesn't work.
>If use one of these BaudRates, e.g. 56000 in the "Objektinspektor", then
>NewNoseClick works.
>
>How can I change the BaudRate during the Program works?
>
>
Technical Details
Message-ID: <3ef1bf37$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.70.MISMATCH!feed3.newsreader.com!newsreader.com!newsfeed.news2me.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ef1b3c8@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e05aa521e7670a58
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-19 06:55:21 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: TportControl von Vladimir Afanasyev
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.244.14.114 62.244.14.114    
X-Forwarded-For: 192.168.0.147
References:  <3ef1b3c8@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ef1bf37$1@newsgroups.borland.com>
Date: 19 Jun 2003 06:48:39 -0700
X-Trace: newsgroups.borland.com 1056030519 207.105.83.65 (19 Jun 2003 06:48:39 -0700)
Lines: 45
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.70.MISMATCH!feed3.newsreader.com!newsreader.com!newsfeed.news2me.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail