Autor Beitrag
Robcavit
Hält's aus hier
Beiträge: 4



BeitragVerfasst: Sa 28.04.07 12:49 
Ich nutze gerade Delphi 5 und versuche ein einfaches Progamm zu schreiben..das wir folgt aussieht

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
program Projekt2;

USES ctr;

BEGIN
Write('Hallooo');

Readkey;

END.


Fataler fehler: Datei nicht gefunden: 'ctr.dcu'

anderes Beispiel:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
program Projekt2;

BEGIN
Write('Hallooo');

END.


Fehler: Error -->runtime error 103 at 00003AF9

habt ihr vielleicht eine idee?

Danke für eure Antwort und Hilfe im voraus.

Moderiert von user profile iconGausi: Delphi-Tags hinzugefügt
Moderiert von user profile iconGausi: Topic aus Programmierwerkzeuge verschoben am Sa 28.04.2007 um 13:53
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 28.04.07 12:57 
Die Unit ctr. stammt noch aus TurboPascal7-Zeiten und wird unter Delphi nicht mehr benötigt.

Der zweite Source funktioniert nicht, weil Du Delphi speziell mitteilen musst, dass Du auf die Konsole Dinge ausgeben willst.

Füge unterhalb von program einfach folgende Zeile hinzu:
ausblenden Delphi-Quelltext
 
2:
{ ... }
{$APPTYPE CONSOLE}

Danach sollte es gehen.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Robcavit Threadstarter
Hält's aus hier
Beiträge: 4



BeitragVerfasst: Sa 28.04.07 13:03 
Super...das ging ja flott mit deiner Antwort..

leider erscheint die Konsole nur für eine sekunde...und meinen String ('Hallo welt')sehe ich garnicht..
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 28.04.07 13:06 
Wenn Du nach Beendigung deiner Ausgabe noch auf einen Tastendruck warten willst, dann ergänze einfach oberhalb von end. ein einfaches ReadLn;, dann wartet dein Programm auf das Drücken der Enter-Taste.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Sa 28.04.07 13:06 
Hallo und :welcome: in der Entwickler-Ecke!

Dann musst du halt ein readln; einfügen.

Aber: möchtest du überhaupt so eine Konsolen-Anwendung schreiben? Ist zumindest für nen Einsteiger ungewöhnlich. Mit Delphi sind ja auch so "echte Windowsanwendungen" möglich. Also mit Buttons und so. ;-)

_________________
We are, we were and will not be.
Robcavit Threadstarter
Hält's aus hier
Beiträge: 4



BeitragVerfasst: Sa 28.04.07 13:25 
dankeee..läuftttt...:)

habt ihr noch gute Literatur empfehlungen für mich??

oder im Internet eine gute Seite???

ich komme leider noch nicht gut voran...

danke im voraus
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 28.04.07 13:27 
Schau dich einfach mal hier in der Delphi-Library um (siehe oben rechts) oder schau mal in den Christian's Crashkurs vorbei.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.