msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I play a .wmv file in VB6

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
Garry



Joined: 04 Oct 2007
Posts: 31

PostPosted: Wed Sep 20, 2006 8:59 pm    Post subject: How can I play a .wmv file in VB6 Reply with quote

I have used the ShellExecute API to try to play a .wmv file. The Windows
Media Player is loaded automatically BUT the .wmv file is not played.

Does anyone have a solution??

Garry

Archived from group: microsoft>public>vb>enterprise
Back to top
View user's profile Send private message
boaz



Joined: 04 Oct 2007
Posts: 259

PostPosted: Wed Oct 18, 2006 8:36 pm    Post subject: Re: How can I play a .wmv file in VB6 Reply with quote

Pass the path to Internet Exploder instead.

Dim ie5

Set ie5 = CreateObject("InternetExplorer.Application")

ie5.Visible = True
ie5.navigate "C:\KyleXY.wmv"
Set ie5 = Nothing



"Garry" wrote in message @TK2MSFTNGP05.phx.gbl...
>I have used the ShellExecute API to try to play a .wmv file. The Windows
>Media Player is loaded automatically BUT the .wmv file is not played.
>
> Does anyone have a solution??
>
> Garry
>
Back to top
View user's profile Send private message
Sinna



Joined: 04 Oct 2007
Posts: 191

PostPosted: Thu Oct 19, 2006 12:12 pm    Post subject: Re: How can I play a .wmv file in VB6 Reply with quote

boaz wrote:
> Pass the path to Internet Exploder instead.
>
> Dim ie5
>
> Set ie5 = CreateObject("InternetExplorer.Application")
>
> ie5.Visible = True
> ie5.navigate "C:\KyleXY.wmv"
> Set ie5 = Nothing
>
>
>
> "Garry" wrote in message
> @TK2MSFTNGP05.phx.gbl...
>> I have used the ShellExecute API to try to play a .wmv file. The Windows
>> Media Player is loaded automatically BUT the .wmv file is not played.
>>
>> Does anyone have a solution??
>>
>> Garry
>>
>
>
Why should you use the Internet Exploder for this? Seems quite some over
kill + you're assuming that the user allows WMV-content to be played
from within the browser.


Sinna
Back to top
View user's profile Send private message
bz



Joined: 04 Oct 2007
Posts: 55

PostPosted: Thu Oct 19, 2006 3:53 am    Post subject: Re: How can I play a .wmv file in VB6 Reply with quote

I am not sure what it does. But when I try it, IE never shows up, and WMP
pops right out and plays the movie.

"Sinna" wrote in message
news:%23ZO5VW08GHA.4552@TK2MSFTNGP05.phx.gbl...
> boaz wrote:
>> Pass the path to Internet Exploder instead.
>>
>> Dim ie5
>>
>> Set ie5 = CreateObject("InternetExplorer.Application")
>>
>> ie5.Visible = True
>> ie5.navigate "C:\KyleXY.wmv"
>> Set ie5 = Nothing
>>
>>
>>
>> "Garry" wrote in message
>> @TK2MSFTNGP05.phx.gbl...
>>> I have used the ShellExecute API to try to play a .wmv file. The Windows
>>> Media Player is loaded automatically BUT the .wmv file is not played.
>>>
>>> Does anyone have a solution??
>>>
>>> Garry
>>>
>>
>>
> Why should you use the Internet Exploder for this? Seems quite some over
> kill + you're assuming that the user allows WMV-content to be played from
> within the browser.
>
>
> Sinna
Back to top
View user's profile Send private message
Sinna



Joined: 04 Oct 2007
Posts: 191

PostPosted: Fri Oct 20, 2006 12:06 pm    Post subject: Re: How can I play a .wmv file in VB6 Reply with quote

Garry wrote:
> I have used the ShellExecute API to try to play a .wmv file. The Windows
> Media Player is loaded automatically BUT the .wmv file is not played.
>
> Does anyone have a solution??
>
> Garry
>
>
Can you post the code you're using to play it?
In most cases there's something wrong with a declaration and/or parameter.


Sinna

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
How To Get File Size of Remote File Hi every one, I am trying to get file size on a remote computer using vb 6.0. I tried using GetFileSize API, but it rquires File Handle and I do not know how to get File Handle. Please help. I do not want to open file. I am actualy coping file to remote m

I can not run exe file Dear All I write an Client/Server application use Winsock Control . Side Client I have a MDI form (frmMain) and MDI child form , .. In frmMain I place a Winsock control (wskWinsock) . In Module (mdlGlobal) I declare an variant type Winso

zip file in vb.net??? How can I zip file in vb.net code?.Thank you.

saving file to CD Hi, On the desktop you can drag and drop files to a CD-R, and XP will take care the rest for you. How do I do this with VB6? "FileCopy" to a CD-R doesn't seem to work. -- > There is no answer. > There has not been an answer. > There will not be an answer.

Am I in the IDE or running from an EXE file? My VB error handler would like to know if I am running in the IDE in which case it could display a button to re-perform the error after executing an On Error GoTo 0 statement, or if this would be suicidal because of running from an EXE. Is there SOME way
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group