473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

AxWMPLib

I use this code to repeat my background sound, but it can' t find AxWMPLib._WMPOCXEvents_PlayStateChangeEvent and tells me:
"Error 1 No overload for 'BackgroundMusic_PlayStateChange' matches delegate 'WMPLib._WMPOCXEvents_PlayStateChangeEventHandler' C:\Users\Ventsislav\Documents\Visual Studio 2008\Projects\WMGame\WMGame\Game.cs 87 13 WMGame
"

What reference I have to insert to find this AxWMPLib, because my BackgroundMusic object is only WMPLib and now I need AxWMPLib?

Expand|Select|Wrap|Line Numbers
  1. BackgroundMusic.PlayStateChange += 
  2.             new _WMPOCXEvents_PlayStateChangeEventHandler(BackgroundMusic_PlayStateChange);
  3.  
  4. ...
  5.  
  6. public void BackgroundMusic_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e)
  7.     { 
  8.         BackgroundMusic.URL = "C://BackSound.wav";
  9.     }
  10.  
Jun 13 '09 #1
0 3322

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mike | last post by:
Hey guys I posted this in the FAQs but I figured I would put it here to. Here is what I am trying to do. I am trying to write a little app in vb.net that when you first open it, it plays a small...
1
by: Anise | last post by:
I have a question concerning embedding a windows media player into a web application in .net.. I download Windows Media Player 10 and its SDK On the .ascx page I placed a windows media player...
3
by: Devron Blatchford | last post by:
Hi there, Can someone tell me how I can detect media buttons (play, stop etc) in VB.NET. KeyPress, up, down events don't seem to capture them. Thanks Devron
0
by: hzgt9b | last post by:
Using VB in VS.NET 2003, I have an app that plays audio clips triggered by clicks on nodes in a TreeView control. This works great using the windows meduia player.... I've just received a new...
0
by: dh | last post by:
Hi all, ....trying to instantiate a WMP player in a console, but the code failed in: using AxWMPLib; using WMPLib; .... AxWMPLib.AxWindowsMediaPlayer objPlayer = new...
0
by: =?Utf-8?B?RGFuaWxv?= | last post by:
Hi everybody, I need catch media player library events, as add a new sons or change attributes. When i modify the library in media player, my external win form application doesn't catch the...
0
by: Patel | last post by:
Hi All, I am doing one INTERESTING work with Context Menu Strip. I am trying to insert a custom control / .Net control in Context menu as a context menu strip. I tried inserting MonthCalender in...
0
by: Patel | last post by:
Hi All, I am doing one INTERESTING work with Context Menu Strip. I am trying to insert a custom control / .Net control in Context menu as a context menu strip. I tried inserting MonthCalender in...
0
by: sonia.sardana | last post by:
I have two buttons Play & Full Screen. If u click on Play Button,Movie starts..Movie Starts within 15-20 Seconds.....When u clik on Full Screen Button.,Media Player is Maximised. I want the if the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.