🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TIdTCPClient Base Class

#3507
From: Curt
Date: Fri, 09 Sep 2005 02:25
47 lines
2064 bytes
I am trying to derive a very simple class from TIdTCPClient but I get the
error

Unresolved external '__fastcall IdTcpclient::TIdTCPClient::SetPortA(const
int)' referenced from c:\...\unit2.obj.

Does anyone have any idea why I get this error ?

Here are the steps I take:
1) New Application
2) New Unit
3) The following code in the new unit (.H and .C)


              .H
//--------------------------------------------------------------------------
-
#ifndef Unit2H
#define Unit2H
//--------------------------------------------------------------------------
-
#include <winsock2>        // just to cover for multiple fd_set error
#include <IdBaseComponent.hpp>
#include <IdComponent.hpp>
#include <IdTCPClient.hpp>
#include <IdTCPConnection.hpp>

class TTest : public Idtcpclient::TIdTCPClient
{
public:
  __fastcall virtual TTest(Classes::TComponent* AOwner);
};
#endif


        .C
//--------------------------------------------------------------------------
-
#pragma hdrstop
#include "Unit2.h"
//--------------------------------------------------------------------------
-
#pragma package(smart_init)
__fastcall TTest::TTest(Classes::TComponent* AOwner) : TIdTCPClient(AOwner)
{
};
Technical Details
Message-ID: <4320f1c9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f352a6119463b42,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Curt" <noemailaddress>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: TIdTCPClient Base Class
Date: Thu, 8 Sep 2005 21:25:48 -0500
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 68.252.136.207
Message-ID: <4320f1c9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1126232521 68.252.136.207 (8 Sep 2005 19:22:01 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail