I am reading this book right now, I am a beginner to C++
I am trying to get this .wav file to play with the code that was in the book, but it doesn't work. I did everything said in the book.
This is the code he has:
case WM_CREATE:
PlaySound(TEXT("HelloWin.wav", NULL, SND_FILENAME | SND_ASYNC);
return 0;
HelloWin.wav is in the same folder as the project file. The book also said to put WINMM.LIB in the Object/Library Modules under project->settings..
Thanks
I am trying to get this .wav file to play with the code that was in the book, but it doesn't work. I did everything said in the book.
This is the code he has:
case WM_CREATE:
PlaySound(TEXT("HelloWin.wav", NULL, SND_FILENAME | SND_ASYNC);
return 0;
HelloWin.wav is in the same folder as the project file. The book also said to put WINMM.LIB in the Object/Library Modules under project->settings..
Thanks