BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

newbie is missing TIdFTP

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
Ray Tayek
Guest





PostPosted: Sun Nov 16, 2003 8:22 pm    Post subject: newbie is missing TIdFTP Reply with quote



hi, i am looking at a bunch of projects (that I inherited) that use
IdFTP. i have no experience with borland's products or Delphi and am
using c++ builder 5. gettng some missing some include files like:

#include "IdBaseComponent.hpp"
#include "IdComponent.hpp"
#include "IdFTP.hpp"

and the compiler complains about TIdFTP not being defined (see sample
connect.h file below).

Lots of other tform stuff works fine.

Can you tell me what these things are and where to get or install them?

Any pointers will be appreciated.

thanks

/---------------------------------------------------------------------------

#ifndef ConnectH
#define ConnectH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <ScktComp.hpp>
#include "IdBaseComponent.hpp"
#include "IdComponent.hpp"
#include "IdFTP.hpp"
#include "IdTCPClient.hpp"
#include "IdTCPConnection.hpp"
//---------------------------------------------------------------------------
class TfrmConnect : public TForm
{
__published: // IDE-managed Components
TBevel *Bevel1;
TLabel *Label1;
TButton *Button1;
TClientSocket *Client;
TIdFTP *Ftp;
void __fastcall Button1Click(TObject *Sender);
void __fastcall ClientError(TObject *Sender, TCustomWinSocket *Socket,
TErrorEvent ErrorEvent, int &ErrorCode);
void __fastcall ClientConnect(TObject *Sender,
TCustomWinSocket *Socket);
void __fastcall ClientRead(TObject *Sender, TCustomWinSocket *Socket);
void __fastcall ClientDisconnect(TObject *Sender,
TCustomWinSocket *Socket);
private: // User declarations
public: // User declarations
__fastcall TfrmConnect(TComponent* Owner);
bool PlayForFun;

float AmountInUserAcc; // amount in user account will get from
server
int Attempt, // Current attempt number
MaxAttempt; // maximum time it should attempt to get connected
to server

AnsiString ServerIP; // IP address of the server
int ServerPort; // port of the server
AnsiString UserName, // user name by which the user will be able
to log
// in to the Game server
Password; // password by which user will log the Game
server

void __fastcall CheckTurn(void);
void GetAnotherIP(void);
int IPFileNo;
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmConnect *frmConnect;
//---------------------------------------------------------------------------
#endif
Back to top
Cecile Muller
Guest





PostPosted: Tue Nov 18, 2003 6:57 am    Post subject: Re: newbie is missing TIdFTP Reply with quote



Quote:
Can you tell me what these things are and where to get or install them?

This is the Indy components. I don't know for Builder but for Delphi,
version 8 was shipped with D6 i think, dunno for D7 but it probably
has version 9 or 10. Anyway you can find them at:
http://www.nevrona.com/Indy/indy.html
For the installation, check out the readme that comes with it.

Back to top
Ray Tayek
Guest





PostPosted: Thu Nov 20, 2003 6:34 pm    Post subject: Re: newbie is missing TIdFTP Reply with quote



Cecile Muller wrote:
Quote:
Can you tell me what these things are and where to get or install them?


This is the Indy components. I don't know for Builder but for Delphi,
version 8 was shipped with D6 i think, dunno for D7 but it probably
has version 9 or 10. Anyway you can find them at:
http://www.nevrona.com/Indy/indy.html
For the installation, check out the readme that comes with it.

found it, installed it. and it works fine (or a least ot compiles fine).

thanks

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.