![]() |
|
[.NET] Get path of included files in project - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Get path of included files in project (/showthread.php?tid=5533255) |
Get path of included files in project - NovaHowl - Jan 24, 2017 In a project a have a wav file that plays when you open it. I've included it in the project so it's packed into the executable. What I need to know is how do you access it? I'm playing the file on initial startup and I don't know how to use it. * - BahNahNah - Jan 24, 2017 put it into the resources. https://msdn.microsoft.com/en-us/library/7k989cfy(v=vs.90).aspx * - NovaHowl - Jan 25, 2017 Thanks, but how would you use it? I tried using Code My.Computer.Audio.Play(My.Resources.File)But I get: Code Value of type 'UnmanagedMemoryStream' cannot be converted to 'String'.* - BahNahNah - Jan 25, 2017 https://msdn.microsoft.com/en-us/library/cf1shcah(v=vs.90).aspx * - NovaHowl - Jan 25, 2017 Just forgot AudioPlayMode, my fault. Thanks! |