Hallo,
ich wollte gerade etwas coden.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37:
| uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, IdHTTP;
type TForm1 = class(TForm) Button1: TButton; Memo1: TMemo; procedure Button1Click(Sender: TObject); private public end;
var Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject); begin form1.Memo1.Clear; try form1.memo1.Text:= IdHTTP1.Get('http://www.google.de'); except form1.memo1.Text := IdHTTP1.ResponseText; if POS('404',memo1.Text) > 0 then showmessage('404 - File not found on Server'); end; end; |
Wenn ich das komipieren will, sagt er mir:
Undefinierter Bezeichner "IdHTTP1"
So wenn ich dann noch IdHTTP1:IdHTTP; unter
type schreibe, sagt er mir, dass IdHTTP keine entsprechende Komponente hat.
Ich habe aber oben in der Leiste "IndyClients, IndyServers, Indy I/O Handers" usw stehen. Habe mir auch gerade für Delphi 7 den Indy Plus Installer gezogen, der das ja automatisch installieren soll.
Woran kann den das Problem noch liegen?
Mfg Markus