I am having a problem extracting the file directory of an audio file which is stored in my project resource folder. In my project, I have a mysounds.resx file in which I added a file (abc.mp3).
WMPLib.WindowsMediaPlayer wplayer = new WMPLib.WindowsMediaPlayer();
wplayer.URL = "E:/xyz.mp3";
wplayer.settings.setMode("loop",false);
wplayer.controls.play();
Here, when I give the "E:/xyz.mp3" directory in wplayer.URL, it plays fine. But what I want to do is to get the file path from mysounds.resx file in which I stored abc.mp3 and I want to use files paths from mysounds.resx file, not any absolute paths.
Is there anyone who can help me? I am not very good in C#. I really need this work around. Thank you in advance.