Autor Beitrag
$veno
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 42



BeitragVerfasst: Fr 21.10.05 14:21 
Hi.
Habe ein Problem:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
type Tmp3rec = record
       filename: string;
       playcounts: integer;
     end;
     TPlaylist = file of TMp3rec;     //in dieser Zeile zeigt er mir den Fehler an

var
  Form1: TForm1;
  Playlist: TStringlist;
  CurrentSong: Integer = -1;
  playlistfile: TPlaylist;
  MP3recs: array of Tmp3rec;


Wenn ich versuche zu compilieren sagt er mir:
Typ 'TMp3rec' benötigt finalisation - nicht im Dateityp erlaubt.

Was muss ich ändern?

Danke und Gruss Sven:)
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Fr 21.10.05 14:24 
der fehler kommt, weil string an sich keine definierte länge hat.
für ein file of record muss dies aber gegeben sein.
lösung: string[255] oder array [0..MAX_PATH-1] of char

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
$veno Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 42



BeitragVerfasst: Fr 21.10.05 14:26 
user profile iconretnyg hat folgendes geschrieben:
der fehler kommt, weil string an sich keine definierte länge hat.
für ein file of record muss dies aber gegeben sein.
lösung: string[255] oder array [0..MAX_PATH-1] of char


Ahhh, danke:)

Übrigends ist das dein Media Player Unit.
Versuche mich gerade zur Übung ein bisschen daran:)