如何控制执行顺序? 一个程序,先播放媒体,播完后再删除...mediaplayer.filename('playfile');mediaplayer.play;(...)deletefile('playfile');如上,中间加什么才可以呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不再播放时写,写在如下事件里procedure TForm1.MediaPlayer1Notify(Sender: TObject);begin if MediaPlayer1.Mode=mpStopped then deletefile('playfile'); .........end; mediaplayer.filename('playfile');mediaplayer.play;if MediaPlayer1.Mode=mpStopped then deletefile('playfile'); trymediaplayer.filename('playfile');mediaplayer.play;finallydeletefile('playfile');这样子,不管怎么样,可以保证播放和释放的顺序。 C#这种字符串在delphi中有吗? 能把Delphi工程打包成绿色的免安装应用程序吗? 大家好,问一个组件安装问题。。 求解月薪4000的含义 如何将一个实数精确到小数点后某位 如何获得打印机状态? 请问如何解决delphi中动画刷新的问题????? 高手能否给出用 Delphi 编出 像Windows 下的 记事本 的主要代码? for Delphi6 的 flatstyle控件为什么没有了anchors属性? 设置了断点,F7进不去,是哪儿参数设置有误? 在StringGrid中,如何响应PgUp/PgDn/上下左右键移动? 求教:关于调用动态库问题,请进!
procedure TForm1.MediaPlayer1Notify(Sender: TObject);
begin
if MediaPlayer1.Mode=mpStopped then
deletefile('playfile');
.........
end;
mediaplayer.play;
if MediaPlayer1.Mode=mpStopped then
deletefile('playfile');
mediaplayer.filename('playfile');
mediaplayer.play;
finally
deletefile('playfile');这样子,不管怎么样,可以保证播放和释放的顺序。