User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 456,233 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,778 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 2580 | Replies: 6 | Solved
Reply
Join Date: Nov 2007
Posts: 4
Reputation: madhura09 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
madhura09's Avatar
madhura09 madhura09 is offline Offline
Newbie Poster

Windows Media Player

  #1  
Nov 7th, 2007
hi
im kind of a dodo in VB6
as a part of my project im trying to build a media player in vb using Windows Media Player control but the code that i had written on another system (windows 2000) is not working on my system (windows xp). the error says that object does not support this property or method
is it a problem of the os????
please can u help me?????????
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,444
Reputation: debasisdas is on a distinguished road 
Rep Power: 4
Solved Threads: 87
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Nearly a Posting Virtuoso

Re: Windows Media Player

  #2  
Nov 7th, 2007
Please pass few more details . It is very difficult to suggest anything based on the very little info passed by you.
Share your Knowledge.
Reply With Quote  
Join Date: Jul 2007
Posts: 102
Reputation: hawisme000 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
hawisme000's Avatar
hawisme000 hawisme000 is offline Offline
Junior Poster

Re: Windows Media Player

  #3  
Nov 7th, 2007
hmm i had a prob just like this b4,

but i dnt knw if its the same on your prob.

well, try loading the file by making a syntax or code it inside you form_load of watever you used

this works on me. cause i get errors if i just set it on the property window.
and then transfer my work on another PC wt diff OS
Reply With Quote  
Join Date: May 2007
Location: India
Posts: 501
Reputation: choudhuryshouvi is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 48
choudhuryshouvi's Avatar
choudhuryshouvi choudhuryshouvi is offline Offline
Posting Pro

Re: Windows Media Player

  #4  
Nov 7th, 2007
post the code segment where u r getting the error. may be this error is occurring due to version confliction for the controls.r u using windows media player control 6.4(in xp) or installed the new version externally?
Shouvik_The_Expert_Coder
Have a problem? Don't worry just give me a call and I'll fix it for you.
Reply With Quote  
Join Date: Nov 2007
Posts: 4
Reputation: madhura09 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
madhura09's Avatar
madhura09 madhura09 is offline Offline
Newbie Poster

Re: Windows Media Player

  #5  
Nov 7th, 2007
should i attach the existing code???
does the windows media player control available in vb depend on the version installed on the computer
Reply With Quote  
Join Date: May 2007
Location: India
Posts: 501
Reputation: choudhuryshouvi is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 48
choudhuryshouvi's Avatar
choudhuryshouvi choudhuryshouvi is offline Offline
Posting Pro

Re: Windows Media Player

  #6  
Nov 8th, 2007
we all know that's the result of ur hard work.but if u do not clearly state the problem how can somebody be able to figure this out?either u post the specific part where r u getting the error or completely describe the problem.

the other thing is, the version of the windows media player activex control is very much depended on the windows media player that u install in ur machine. by default when u install vs6.0 it installs the version 6.4 but if u install the microsoft windows media player externally(from any source)the version will be upgraded.if it happens u cannot be able to use the older version anymore.even if u used the old control in ur program, after the upgradation the existing control in ur program will not be recognized by the vb itself. then u can be able to run the executable only(if created). let's for example, u used wmp 6.4 ocx. now u installed wmp 10 in the same os. now if u try to run ur existing code u will fetch erros associated with the wmp control. these errors actually occur due to change in the methods and properties of the control in diff. versions. like if u wanna play a file using wmp 6.4 u code mediaplayer1.play, but if u use wmp 10 or some other higher version the equivalent syntax will be mediaplayer1.controls.play, so in this case after upgradation of the control the previous syntax will not be recognized by vb and it will give u the error as u stated in this post. the error will occur due to the change in mediaplayer1.play to mediaplayer.controls.play .

i hope this lecture will help u in some context.
good luck.
Shouvik_The_Expert_Coder
Have a problem? Don't worry just give me a call and I'll fix it for you.
Reply With Quote  
Join Date: Nov 2007
Posts: 4
Reputation: madhura09 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
madhura09's Avatar
madhura09 madhura09 is offline Offline
Newbie Poster

Re: Windows Media Player

  #7  
Nov 8th, 2007
hi shouvik
thanks a million ur lecture really helped the problem was the same one that u described
after i changed all the methods such as mediaplayer.play to mediaplayer.controls.play all the controls have started working
thanks a million again
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 5:06 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC