Zgodnie z radą uzyskaną na tym forum próbuję pisać "ręcznie" (bez instalowania komponentów) w INDY. Wyskrobałem coś takiego:
#ifndef Unit4H
#define Unit4H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Indy10/IdFTPServer.hpp> //Wg helpa tam sie znajduje deklaracja TIdFTPServer
//---------------------------------------------------------------------------
class TForm4 : public TForm
{
__published: // IDE-managed Components
TEdit *Edit1;
TEdit *Edit2;
TLabel *Label1;
TLabel *Label2;
TLabel *Label3;
TEdit *Edit3;
TButton *Button1;
TButton *Button2;
private: // User declarations
TIdFTPServer *IdFTPServer;
public: // User declarations
__fastcall TForm4(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm4 *Form4;
//---------------------------------------------------------------------------
#endif
I wywala mi całą masę błędów w pliku IdFTPServer.hpp:
[C++ Error] IdFTPServer.hpp(18): E2209 Unable to open include file 'Idcommandhandlers.hpp'
[C++ Error] IdFTPServer.hpp(20): E2209 Unable to open include file 'Idcontext.hpp'
[C++ Error] IdFTPServer.hpp(22): E2209 Unable to open include file 'Idexplicittlsclientserverbase.hpp'
[C++ Error] IdFTPServer.hpp(23): E2209 Unable to open include file 'Idftpbasefilesystem.hpp'
[C++ Error] IdFTPServer.hpp(27): E2209 Unable to open include file 'Idftplistoutput.hpp'
[C++ Error] IdFTPServer.hpp(28): E2209 Unable to open include file 'Idftpservercontextbase.hpp'
[C++ Error] IdFTPServer.hpp(29): E2209 Unable to open include file 'Idreply.hpp'
[C++ Error] IdFTPServer.hpp(30): E2209 Unable to open include file 'Idreplyftp.hpp'
[C++ Error] IdFTPServer.hpp(31): E2209 Unable to open include file 'Idreplyrfc.hpp'
[C++ Error] IdFTPServer.hpp(32): E2209 Unable to open include file 'Idscheduler.hpp'
[C++ Error] IdFTPServer.hpp(35): E2209 Unable to open include file 'Idcmdtcpserver.hpp'
[C++ Error] IdFTPServer.hpp(38): E2209 Unable to open include file 'Idobjs.hpp'
[C++ Error] IdFTPServer.hpp(40): E2209 Unable to open include file 'Idyarn.hpp'
[C++ Error] IdFTPServer.hpp(41): E2209 Unable to open include file 'Idzlibcompressorbase.hpp'
[C++ Error] IdFTPServer.hpp(42): E2209 Unable to open include file 'Idsys.hpp'
[C++ Error] IdFTPServer.hpp(44): E2209 Unable to open include file 'Idtask.hpp'
[C++ Error] IdFTPServer.hpp(45): E2209 Unable to open include file 'Idcustomtcpserver.hpp'
[C++ Error] IdFTPServer.hpp(74): E2257 , expected
[C++ Error] IdFTPServer.hpp(100): E2257 , expected
[C++ Error] IdFTPServer.hpp(376): E2257 , expected
[C++ Error] IdFTPServer.hpp(378): E2316 'TIdIPVersion' is not a member of 'Idglobal'
[C++ Error] IdFTPServer.hpp(378): E2257 , expected
[C++ Error] IdFTPServer.hpp(420): E2090 Qualifier 'Idexplicittlsclientserverbase' is not a class or namespace name
[C++ Error] IdFTPServer.hpp(420): E2303 Type name expected
[C++ Error] IdFTPServer.hpp(420): E2275 { expected
[C++ Error] IdFTPServer.hpp(420): E2228 Too many error or warning messages
Co ja robię źle?
PS. Szukałem tych plików na dysku i są tam gdzie powinny być, czyli w folderze \include\Indy10.