🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #560

Re: TTcpClient->Active

#560
From: Peter Offenwanger
Date: Thu, 24 Jan 2008 01:08
42 lines
2269 bytes
Remy Lebeau (TeamB) wrote:
> "Peter Offenwanger" <unigeek@gmail.com> wrote in message 
> news:4797c6c0@newsgroups.borland.com...
> 
>> [Linker Error] Error: Unresolved external '__fastcall 
>> Sockets::TBaseSocket::SetActive(char)'
> 
> There is no SetActive() method in TBaseSocket that takes a char as input. 
> TBaseSocket::SetActive() takes a bool instead:
> 
>     void __fastcall SetActive(bool Value);
>     __property bool Active = {read=FActive, write=SetActive, default=0};
> 
> 
> Gambit
> 

I am aware that it should be a bool but I am passing it a bool and I get 
the Linker Error.

My code compiles and runs and communicates over the TCP connection but 
if I add the following code.

void __fastcall TISDMainForm::Button1Click(TObject *Sender)
{
	bool SetSocketActive;

   	SetSocketActive = true;
	MyTcpClient->Active = SetSocketActive;
}


I get

[Linker Error] Error: Unresolved external '__fastcall 
Sockets::TBaseSocket::SetActive(char)'

I tested this in another program that was empty except for this code and 
it worked fine so there must be something in my project that is causing 
  this. I am not overriding anything in Sockets. I guess I will have to 
reassemble the project piece by piece until I find the part that causes 
this.
Technical Details
Message-ID: <4797e538$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4797c6c0@newsgroups.borland.com> <4797cb02$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6a0dfdfd503c5fb7
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 23 Jan 2008 17:08:42 -0800
From: Peter Offenwanger <unigeek@gmail.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: TTcpClient->Active
References: <4797c6c0@newsgroups.borland.com> <4797cb02$1@newsgroups.borland.com>
In-Reply-To: <4797cb02$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 75.157.99.175
Message-ID: <4797e538$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1201136952 75.157.99.175 (23 Jan 2008 17:09:12 -0700)
Lines: 42
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail