Click to See Complete Forum and Search --> : Resources Problem! Please Help!


_Comet_Keeper_
March 25th, 2005, 01:51 PM
Hallo,

I'm developing an application that use lots of little wav files. The idea is to deploy all these wavs in the same application. I clicked with the right mouse button on the - say it - WindowsApplication1 and I selected "add an existing item". Than I selected on of the wav files - say it wav1.wav -

The problem is: how can I play that wave? I thought to use Assembly:

MyAs=Assembly.GetExecutingAssembly();
Str=IO.Stream=MyAss.GetManifestRosourceStream("WindowsApplication1.wav1.wav");

The problem is: how can I use Str now?? How can I pass it to PlaySound (winmm.dll)? If PlaySound can't be used, how can I play this resource??

Than
CometKeeper...