Autor Beitrag
Aluca
Hält's aus hier
Beiträge: 6



BeitragVerfasst: Fr 25.08.06 19:15 
Hallo,
benutze die die Version Borland 2005 PE und habe folgendes Problem:
Wenn ich folgenden Quelltext:
ausblenden volle Höhe Delphi-Quelltext
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:
38:
39:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, IdBaseComponent, IdComponent, IdTCPServer, StdCtrls;

type
  TForm1 = class(TForm)
    IdTCPServer1: TIdTCPServer;
    procedure FormDestroy(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;
  Log: TMemo;
implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
    IdTCPServer1.DefaultPort :=  12345;
    IdTCPServer1.Active := true;
    Log.lines.add('Server online!');
end;

procedure TForm1.FormDestroy(Sender: TObject);
begin
    IdTCPServer1.Active:= false;
end;

end.

ausführe, erscheint bloß kurz ein Dos-Fenster, obwohl doch wenigstens(und sei der Code noch so falsch) ein Formular mit einem Memo erscheinen müssste.
Habe ich vllt. die Indy Komponenten falsch installiert?
Ich hoffe mir kann jemand helfen.
Danke schonmal :)

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Fr 25.08.06 23:40 
An den Indys dürfte es wohl kaum liegen. Poste mal deine Projektdatei (Ansicht->Units...->[Name des Projekts])
Ansonsten wäre noch unter Projektoptionen in den Linker-Einstellungen zu prüfen, ob "Textbildschirm-Anwendung" aktiviert ist.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Aluca Threadstarter
Hält's aus hier
Beiträge: 6



BeitragVerfasst: Sa 26.08.06 11:22 
Mein Fehler:
Hatte das Projekt als Konsolenanwendung gestartet^^
Hat sich damit erledigt...