C++ (WinForms) Play .wav file from resource

12/05/2012 13:04 xyfz#1
Hey,


im trying to play a .wav sound from my resources in c++.

works with PlaySound() in console app.

but i cant figure out how to play the sound in winformsapp.

tryed a few things out but it wont work. google didnt help me that much...

i hope someone has any idea how to get this working in winformsapp!

thanks in advance
12/05/2012 16:26 kissein#2
Quote:
Originally Posted by xyfz View Post
Hey,
...
tryed a few things out but it wont work. google didnt help me that much...
...
Use QSound if you already use Qt otherwise have a look at these google results ;)
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

there are still some more to find
12/05/2012 19:07 xyfz#3
Quote:
Originally Posted by kissein View Post
Use QSound if you already use Qt otherwise have a look at these google results ;)
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

there are still some more to find

thank you kissein!

tryed most of them, but it only worked in consoleapp.
dont know how to implement this in my winformsapp :(

anyways, i will play around with it

--

it works now with:
[Only registered and activated users can see links. Click Here To Register...]

(not from resources though :D)