要在 C 程序中添加 PlaySound 函数并循环播放音乐,你需要:
- 包含 Windows 头文件 "Windows.h"。
- 使用 PlaySound 函数,语法如下:
BOOLPlaySound(
LPCTSTR pszSound,
HMODULE hmod,
DWORD fdwSound
);
要在 C 程序中添加 PlaySound 函数并循环播放音乐,你需要:
BOOLPlaySound(
LPCTSTR pszSound,
HMODULE hmod,
DWORD fdwSound
);