🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages Started by Adam Mon, 27 Mar 2006 09:57
spcomm errors
#2561
Author: Adam
Date: Mon, 27 Mar 2006 09:57
17 lines
1619 bytes
could you check what's wrong with the codes below? Thank you very much.

//----initializtion serial port & open 
it -----------------------------------------------------------------------

void __fastcall TForm3::BitBtn1Click(TObject *Sender)
{
  this->Comm1->CommName=this->ComboBox1->Text; //number serial port
  this->Comm1->BaudRate=StrToInt(this->ComboBox2->Text); //baud rate
  this->Comm1->ByteSize=StrToInt(this->ComboBox3->Text); // data bits
  this->Comm1->StopBits=StrToInt(this->ComboBox4->Text); //  data stop bits
  this->Comm1->Parity=this->ComboBox5->Text;   // parity check
  this->Comm1->XoffLimit=500;  //send buffer capascity
  this->Comm1->XonLimit=500;   // Receive Buffer capacity
  this->Comm1->StartComm();

}
Re: spcomm errors
#2562
Author: Andrue Cope [TeamB]
Date: Mon, 27 Mar 2006 09:23
15 lines
1269 bytes
Adam wrote:

> could you check what's wrong with the codes below? Thank you very
> much.

That's an open ended question. If you want help from people you need to
give as much information as possible. What kind of error are you
seeing? Runtime? Compile time?

From a cursor inspection I'd say that the code looks like it ought to
compile but beyond that I don't know.
-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Re: spcomm errors
#2572
Author: Adam
Date: Tue, 28 Mar 2006 02:05
38 lines
2086 bytes
1,error line:this->Comm1->Parity=this->ComboBox5->Text;

error information:[C++ Error] Unit3.cpp(44): E2034 Cannot convert 
'AnsiString' to 'TParity'

2,error line: this->Comm1->ByteSize=StrToInt(this->ComboBox3->Text);

error information:[C++ Warning] Unit3.cpp(42): W8018 Assigning int to 
TByteSize

3,error line:this->Comm1->StopBits=StrToInt(this->ComboBox4->Text);

error information:[C++ Warning] Unit3.cpp(43): W8018 Assigning int to 
TStopBits

Thank you in advance.





"Andrue Cope [TeamB]" <no.spam@not.a.valid.address> wrote in message 
news:4427bd1b@newsgroups.borland.com...
> Adam wrote:
>
>> could you check what's wrong with the codes below? Thank you very
>> much.
>
> That's an open ended question. If you want help from people you need to
> give as much information as possible. What kind of error are you
> seeing? Runtime? Compile time?
>
> From a cursor inspection I'd say that the code looks like it ought to
> compile but beyond that I don't know.
> -- 
> Andrue Cope [TeamB]
> [Bicester, Uk]
> http://info.borland.com/newsgroups/guide.html 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads