01.12.2013, 22:31
hab noch folgendes gefunden:
PlaySound function
With the help of my colleage, I have solved the the problem when compiling with the PlaySound function. Here is the solution:
1. Include the following header files in this order:
#include "windows.h"
#include "mmsystem.h"
2. follow the following steps to add winmm.lib to the linker (assuming Visual Studio 2010):
a. Right click the project name in the Solution Explorer and select "Property".
b. On the left pane of the Property window, select "Linker" and then "Input"
c. On the right pane, type winmm.lib in the "Additional Dependencies" row.
d. Click "Apply" and then "OK".
You are now ready to compile and play .wav files.
PlaySound function
With the help of my colleage, I have solved the the problem when compiling with the PlaySound function. Here is the solution:
1. Include the following header files in this order:
#include "windows.h"
#include "mmsystem.h"
2. follow the following steps to add winmm.lib to the linker (assuming Visual Studio 2010):
a. Right click the project name in the Solution Explorer and select "Property".
b. On the left pane of the Property window, select "Linker" and then "Input"
c. On the right pane, type winmm.lib in the "Additional Dependencies" row.
d. Click "Apply" and then "OK".
You are now ready to compile and play .wav files.
Slow Down. Take it Easy