Hi. I am new to DaniWeb so I hope I am doing this right. I am an amateur VB programmer. I wrote a VB6 program that featured a fruit machine with changing letters in the windows. To add sound I used the code line (e.g.) MediaPlayer5.Play. My recollection is that I set up all the parameters for the MediaPlayer object in the properties window for the appropriate Media Player object at design time. This would have included the relevant sound file. It all worked beautifully, and I also used the same technique for playing a video clip. At the time I had Media Player 9 on my PC. Now I have returned to working on the program and VB 6 appears not to recognise the method. I now have Media Player 10 on my PC, but I have also tried my existing program after rolling back to Media Player 9, and it still does not work. All the code is the original code that worked fine. What has changed ? It was such a simple method to use. Thanks if you can help. Mikecc2691.
Mikecc2691
0
Newbie Poster
Recommended Answers
Jump to Posttry using the API PlaySound.
Jump to Postyou're welcome. don't forget to mark this thread solved. :)
happy coding friend :)
All 5 Replies
debasisdas
580
Posting Genius
Featured Poster
Mikecc2691
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
Mikecc2691
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
dnk
commented:
helpfull people
+1
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.