Autor Beitrag
andras
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 460

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: Sa 06.08.05 14:23 
hallo
ich hab ein kleines problem mit meiner mediaplayeromponentn
ausblenden 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:
var f:TextFile;
    t:string;
    s:Array of string;
    i,ii:integer;
    aus:boolean;
begin
OpenDialog1.Execute;
if OpenDialog1.Filename <> '' then begin
                                        i:=0;
                                        aus:=false;
                                        aus:=false;
                                        AssignFile(f,OpenDialog1.FileName);
                                        Reset(f);
                                        repeat
                                        i:=i+1;
                                        SetLength(s,i+1);
                                        ReadLN(f,s[i]);
                                        if s[i]='' then aus:=true;
                                        until aus=true;
                                        closefile(f);
                                        for ii:=1 to i do ListBox1.Items.Add(s[ii]);
                                        t:=ListBox1.Items.Strings[1];
                                        Label1.Caption:=t;
                                        Mediaplayer1.Open;
                                        Mediaplayer1.FileName:=t; {Hier tritt der fehler aus}
                                        end;
end;

der fehler heißt EMCIDeviceError mit der Nachricht: kann dateierwieterung aus geräte ty nicht lesen (oder so ähnlich)
was hab ich falsch gemacht??
bitte hleft mir
danke schon im voraus
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: Sa 06.08.05 14:49 
probier mal zeile 24 und 25 zu tauschen

btw deine code-formatierung ist sowas von grässlich, dass du deine fehler nicht findest wundert mich nicht

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

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: Mo 08.08.05 11:05 
danke!!!!!!!!!
ok, ich gebs zu, mein codeformatiierung ist nicht die schönste, aber ich hatte mich eh fast nicht getraut meinen code heraufzustellen :D
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Mo 08.08.05 11:19 
Wenn du wissen willst, wie man den Code richtig formatiert, oder zumindest eine Richtlinie, dann findest du hier was. ;)