•
•
•
•
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
![]() |
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?????????
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?????????
•
•
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,444
Reputation:
Rep Power: 4
Solved Threads: 87
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
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
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.
Have a problem? Don't worry just give me a call and I'll fix it for you.
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.
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.
Have a problem? Don't worry just give me a call and I'll fix it for you.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
antivirus apple browser cd choose computer crack debian defender dell development download drm explorer fiji hoax ie 7 india install internet ipod leopard linux media microsoft mobile news office open operating os photo player research security server software source spyware survey system ubuntu unix upgrade video vista windows windows update windows vista xp
- No sound in Windows Media Player (Windows 9x / Me)
- Windows Media Player 7.1 (Windows 9x / Me)
- Windows media player (Windows NT / 2000 / XP / 2003)
- windows media player opens at startup with error (Windows NT / 2000 / XP / 2003)
- Help with windows media player please (Windows NT / 2000 / XP / 2003)
- Working with Album Art in Windows Media Player (Windows tips 'n' tweaks)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Just wanna ask queations???
- Next Thread: Reading excel sheet into a recordset



Linear Mode