Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I added windows media player reference in my project and add code as below

C#
WindowsMediaPlayer wmp = new WindowsMediaPlayer();


It shows assembly or type reference missing why happening like this..
Which namespace I have to include to make it correct


Thanks in advance
Posted
Updated 14-Sep-11 1:09am
v2
Comments
Pravin Patil, Mumbai 14-Sep-11 7:14am    
The error itself show that you are missing the reference for a particular assembly, Just check that and add the same....

1 solution

If you are using Interop.WMPLib then try this using WMPLib;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900