Seeker870
Nov 26th, 2001, 08:49 AM
I'm having problems getting the media player to work in VB. The pop-up suggests that the file name is 'bstrFileName'. I've never seen this 'bstr' before a file name indicator before. Anyone have any ideas what it could be indicating?
Or for that matter does anyone know of a good way to show an .avi file. While the .avi files themselves do not have sound, I will also need a way of playing .wav files.
Any suggestions?
The code I am using is simple and straightfoward (because I am testing out the concept):
Private Sub Command1_Click()
MediaPlayer1.FileName = App.Path & "\playball"
MediaPlayer1.Play
End Sub
The Error I get is:
Run-time error '-2147467259 (80004005)':
Method 'Play' of object 'IMediaPlayer2' failed
Debug suggests that the error is in the 'MediaPlayer1.Play' command, but I don't know why, how or anything else.
:confused:
Or for that matter does anyone know of a good way to show an .avi file. While the .avi files themselves do not have sound, I will also need a way of playing .wav files.
Any suggestions?
The code I am using is simple and straightfoward (because I am testing out the concept):
Private Sub Command1_Click()
MediaPlayer1.FileName = App.Path & "\playball"
MediaPlayer1.Play
End Sub
The Error I get is:
Run-time error '-2147467259 (80004005)':
Method 'Play' of object 'IMediaPlayer2' failed
Debug suggests that the error is in the 'MediaPlayer1.Play' command, but I don't know why, how or anything else.
:confused: