Re: Windows Media Player VB6

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Ron" <Ron@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:C88B6BDE-EE70-4B54-A9EB-DC4C64D04F17@xxxxxxxxxxxxxxxx

I am getting the Automation Error

That's almost certainly because the file you are attempting to play does not exist. Post the *exact* code you are currently using. As far as I recall you are using the following line to play the file:

Player1.RenderFile sPlayer & sSelection

If that is the case then try replacing it with this line:

MsgBox FileExists(sPlayer & sSelection)

.. . . after first adding the following function to your code:

Private Function FileExists(fname As String) As Boolean
On Error Resume Next
FileExists = (GetAttr(fname) And vbDirectory) = vbNormal
End Function

Does the message box report a True or a False?

Mike



.



Relevant Pages

  • Re: Wheres the next Oblivion patches.
    ... enter to give yourself the cure potion for vampirism. ... I don't recall ... the exact steps but google should be able to find it for you. ... I'll look that up as I didn't choose to play as a Vampire. ...
    (comp.sys.ibm.pc.games.rpg)
  • Re: LoTRO Beta -- Initial Impressions.
    ... You were coming out with the same nonsense regarding Guild Wars, as I recall. ... People talk incessantly in towns, ... Maybe some of them are like you, and don't even play the game. ... One thing you can rest assured about is that I'm not going to play the game just to 'prove' you wrong. ...
    (comp.sys.ibm.pc.games.rpg)
  • Re: Song Suggestions
    ... I am not a big fan of the exact "note for note" concept. ... Most musicians don't play their own stuff exactly note for note. ... Variety is the spice of life. ... Beginner level music may demand an alternate arrangement in most ...
    (alt.guitar.beginner)
  • Re: My Opinion on the Manny Situation
    ... >> Recall that the two times I recall him not running down the baseline, ... >> but not really fast on a play that ended in a double play, ... He should've been safe by a MILE, ... annoyed at Manny, and I assume you have no problem with my liking him. ...
    (alt.sports.baseball.bos-redsox)
  • Re: Rules
    ... >> If they choose to play out of turn and thinned it into the water, ... >> that's hard luck for them. ... >> I certainly wouldn't recall the shot. ...
    (rec.sport.golf)