不好意思:我修改了路径。如下:
procedure TFmain.FormCreate(Sender: TObject);
var
syspath:string;
begin
syspath:=ExtractFilePath(Application.EXEName);
Mediaplayer1.filename:=syspath+'image/bgzc.mp3';
MediaPlayer1.Open;
MediaPlayer1.Notify:=True;
MediaPlayer1.Play;
end;
procedure TFmain.MediaPlayer1Notify(Sender: TObject);
begin
If MediaPlayer1.Position=MediaPlayer1.Length then
begin
MediaPlayer1.Rewind;
MediaPlayer1.Play;
end;
end;
这是循环播放背景音乐的,我在Mediaplayer1的Filename中删除了绝对路径,可运行出现[严重错误] Unable to build. License is invalid or has expired.
请问我错在哪里?