🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Unresolved external 'Idantifreeze::TIdAntiFreeze:

#2777
From: Liu Shan
Date: Thu, 12 Jan 2006 02:56
72 lines
3974 bytes
Hi,

I've copied the full code you provided me to my server project, and try to 
use TIdTCPServer's Greeting and CommandHandlers instead of OnExecute and 
IdTCPServerConnect event. I use Object Inspector to create four 
TidCommandHandler and assign event, one I compile got "E2293 ) expected".

here is ServerMain.h file


#ifndef ServerMainH
#define ServerMainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <IdBaseComponent.hpp>
#include <IdComponent.hpp>
#include <IdTCPServer.hpp>
#include <CheckLst.hpp>
#include <IdAntiFreeze.hpp>
#include <IdAntiFreezeBase.hpp>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published: // IDE-managed Components
    TPageControl *pgeMain;
    TTabSheet *tabProcesses;
    TTabSheet *tabMain;
    TStatusBar *StatusBar;
    TButton *btnStartServer;
    TButton *btnStopServer;
    TButton *btnExit;
    TButton *btnClearMessages;
    TCheckListBox *lbIPs;
    TComboBox *cboPorts;
    TEdit *edtPort;
    TListBox *lbProcesses;
    TLabel *Label1;
    TIdTCPServer *IdTCPServer;
    void __fastcall btnStartServerClick(TObject *Sender);
    void __fastcall cboPortsChange(TObject *Sender);
    void __fastcall btnStopServerClick(TObject *Sender);
    void __fastcall btnClearMessagesClick(TObject *Sender);
    void __fastcall IdTCPServerExecute(TIdPeerThread *AThread);
    void __fastcall IdTCPServerConnect(TIdPeerThread *AThread);
    void __fastcall btnExitClick(TObject *Sender);
    void __fastcall IdTCPServerTimeCommand(TIdCommand *ASender);  //"E2293 ) 
expected".
    void __fastcall IdTCPServerDateCommand(TIdCommand *ASender);  //"E2293 ) 
expected".
    void __fastcall IdTCPServerTickCountCommand(TIdCommand *ASender); 
//"E2293 ) expected".
private: // User declarations

public:  // User declarations
    __fastcall TfrmMain(TComponent* Owner);
    __fastcall TfrmMain::~TfrmMain();

    TStringList *fErrors;
    bool fServerRunning;
    void PopulateIPAddresses();
    AnsiString PortDescription(int PortNumber);
    bool StopServer();
    bool StartServer();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif
Technical Details
Message-ID: <43c5c4ea@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43bcec76$1@newsgroups.borland.com> <43bd5f66$1@newsgroups.borland.com> <43bdcbd3$1@newsgroups.borland.com> <43bdd68e@newsgroups.borland.com> <43be37e8@newsgroups.borland.com> <43bebfd0$1@newsgroups.borland.com> <43c1be5a$1@newsgroups.borland.com> <43c23f02@newsgroups.borland.com> <43c47703$1@newsgroups.borland.com> <43c496ed$1@newsgroups.borland.com> <43c4a871@newsgroups.borland.com> <43c4da9b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a9ad1d742dfc75bf
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Liu Shan" <liushan@ps-electronic.com>
From: "Liu Shan" <liushan@ps-electronic.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <43bcec76$1@newsgroups.borland.com> <43bd5f66$1@newsgroups.borland.com> <43bdcbd3$1@newsgroups.borland.com> <43bdd68e@newsgroups.borland.com> <43be37e8@newsgroups.borland.com> <43bebfd0$1@newsgroups.borland.com> <43c1be5a$1@newsgroups.borland.com> <43c23f02@newsgroups.borland.com> <43c47703$1@newsgroups.borland.com> <43c496ed$1@newsgroups.borland.com> <43c4a871@newsgroups.borland.com> <43c4da9b@newsgroups.borland.com>
Subject: Re: Unresolved external 'Idantifreeze::TIdAntiFreeze:
Date: Thu, 12 Jan 2006 10:56:57 +0800
Lines: 75
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 219.74.19.168
Message-ID: <43c5c4ea@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1137034474 219.74.19.168 (11 Jan 2006 18:54:34 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail