白
白乐天
Unregistered / Unconfirmed
GUEST, unregistred user!
编好的程序在我的机器上没问题,在别人的机器上(xp)出现No MCI device open错误。
相关代码如下:
procedure TmainForm.MediaPlayer1Notify(Sender: TObject);
begin
If MediaPlayer1.Position=MediaPlayer1.Length then
begin
MediaPlayer1.Rewind;
MediaPlayer1.Play;
end;
end;
procedure TmainForm.playBGM;
begin
MediaPlayer1.Close;
MediaPlayer1.FileName:='BGM/BGM00.wma';
MediaPlayer1.AutoRewind:=true;
MediaPlayer1.open;
try
MediaPlayer1.Notify:=True;
MediaPlayer1.Play;
except
end;
end;
请问哪里有错误?如何解决?
相关代码如下:
procedure TmainForm.MediaPlayer1Notify(Sender: TObject);
begin
If MediaPlayer1.Position=MediaPlayer1.Length then
begin
MediaPlayer1.Rewind;
MediaPlayer1.Play;
end;
end;
procedure TmainForm.playBGM;
begin
MediaPlayer1.Close;
MediaPlayer1.FileName:='BGM/BGM00.wma';
MediaPlayer1.AutoRewind:=true;
MediaPlayer1.open;
try
MediaPlayer1.Notify:=True;
MediaPlayer1.Play;
except
end;
end;
请问哪里有错误?如何解决?