没连WINMM.LIB ,原文说得清楚:If you use Microsoft Visual C++ to create a new project for this program, you need to make an addition to the object libraries the linker uses. Select the Settings option from the Project menu, and pick the Link tab. Select General from the Category list box, and add WINMM.LIB ("Windows multimedia") to the Object/Library Modules text box.
编译执行看会不会出问题。如果这种情况下还是出问题,说明你使用的库不正确。
反之,就是你的程序没有编对罗。