Click here to Skip to main content
15,910,661 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have been tryin to use windows media player dll for some app purpose,i added the wmp.dll from system 32 but after this the dll doesn't appear in my toolbox? actually im trying to make simple Microspft office app for Microsoft word,m confuse now is it possible to use wmpdll or not? any suggestion guys?
Posted

1 solution

It doesn't show up in the Toolbox, but you have to programmatically instantiate the player and start playback:

C#
private WMPLib.WindowsMediaPlayer m_Player = new WMPLib.WindowsMediaPlayer();

m_Player.URL = @"<File Path>";
m_Player.controls.play();


Implement your own UI controls to control the player.
 
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