A Another_eYes Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-22 #2 是否filename为空并且选择了AutoOpen?
W wtiebo Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-22 #3 Yes.But WHY? I can't understand . But thank you yet!
D dyf Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-22 #4 因为device初始设置为autodetect, open时需根据filename确定驱动程序
A Another_eYes Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-22 #5 正确, 所以我劝您别把autodetect打开, 既然你好象需要动态改变filename的, 每次设完filename后自己调用open和play得了, 也很简单嘛
C CJ Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-22 #6 好不容易找到个简单的... 我用MEDIA PLAY时不用AUTOOPEN而用这样的代码 try mediaplayer1.filename := 'ani.avi'; mediaplayer1.open except mediaplayer1.visable := false //我把动画在MEDIAPLAYER中播放 end;
好不容易找到个简单的... 我用MEDIA PLAY时不用AUTOOPEN而用这样的代码 try mediaplayer1.filename := 'ani.avi'; mediaplayer1.open except mediaplayer1.visable := false //我把动画在MEDIAPLAYER中播放 end;
W wtiebo Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-24 #7 但是,问题依然存在。是否我的DELPHI4装得有问题?不过,在装的过程中,没出 现任何问题。
唐 唐晓锋 Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-25 #8 用我下面的例子保证没错! procedure TForm1.Button1Click(Sender: TObject); begin MediaPlayer1.FileName:='c:/windows/media/the microsoft sound.wav'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.Button2Click(Sender: TObject); begin mediaPlayer1.FileName:='C:/WINDOWS/MEDIA/Office97/Camera.wav'; MediaPlayer1.Open; MediaPlayer1.Play; end; <font color=red>Good Luck!</font>
用我下面的例子保证没错! procedure TForm1.Button1Click(Sender: TObject); begin MediaPlayer1.FileName:='c:/windows/media/the microsoft sound.wav'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.Button2Click(Sender: TObject); begin mediaPlayer1.FileName:='C:/WINDOWS/MEDIA/Office97/Camera.wav'; MediaPlayer1.Open; MediaPlayer1.Play; end; <font color=red>Good Luck!</font>
唐 唐晓锋 Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-25 #9 补充一点: AutoOpen -> False ShareAble -> False 应在属性表里面定好
S smallshrimp Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-25 #11 光谢谢就够了吗?*_~<font color=red><big>加分!</big></font>
W wtiebo Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-25 #12 当然,但我还不知到问题是否已被解决.能不能先等等?