I made a form app some time ago. I looked up the source code and it has a playsound function that functions properly using a wav resource: PlaySound(MAKEINTRESOURCE(IDR_WAVE1), GetModuleHandle(0), SND_RESOURCE | SND_ASYNC);
It appears immediately after this code:
1 2 3 4 5 6 7
public ref class Form2 : public System::Windows::Forms::Form
{
staticint TimeCounter = 0;
public:
Form2(void)
{
InitializeComponent();