Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am calling realplayer from within my app using shell. If I just call the player it works OK, realplayer opens.

 

If I tack on the file name I want to open realplayer opens but I then get a general error from it saying this: http://100_0942.MOV

 

I have the path to realplayer as:

 

Public gstrRealPlayerPath As String = """C:\Program Files\Real\RealPlayer\realplay.exe"""

 

I then add this when the user selects the movie file of choice:

 

Dim strPlayerAndFilePath As String = gstrRealPlayerPath & " """ & Me.cboMovies.SelectedItem & """"

 

I then pass strPlayerAndFilePath to shell.

 

With or without quotes I get the error?

 

If I run realplayer manually and open the mov file it works?

 

If I modify the shortcut to include the mov file name it works?

 

Have I missed something?

 

Thanks

My website
  • Leaders
Posted

you seem to have a lot of quotes on the realplayer path , this line ...

Public gstrRealPlayerPath As String = """C:\Program Files\Real\RealPlayer\realplay.exe"""
did you know that you can specify a file path with either an @ symbol or double back slashes \\ , eg:

 
Public gstrRealPlayerPath As String = @"C:\Program Files\Real\RealPlayer\realplay.exe" 
or 
Public gstrRealPlayerPath As String = "C:\\Program Files\\Real\\RealPlayer\\realplay.exe"

it may be that the extra "" are causing a problem.

Posted

Ooow I did not know that! But I do now thnx :)

 

I just came back to say I found the problem. I did not include the explicit path to the movie file! Plonker :o

 

I had included all the quotes as part of various attempts to resolve the error.

 

Thnx

My website

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...