我起首就加mmsystem.h,不过他出现以下错误信息:
Bombard.obj : error LNK2001: unresolved external symbol __imp__mciSendStringA@16
Debug/Bombard.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.怎么办????????????/

解决方案 »

  1.   

    #include <mmsystem.h>再添加Winmm.lib文件。
      

  2.   

    add the mmsystem.lib to your project!
      

  3.   

    加入lib文件或MMSYSTEM.DLL库,
    lib从MMSYSTEM.DLL生成的
      

  4.   

    将winmm.lib加入project setting/link
      

  5.   

    VC
    Projects->Add Project->Component And Controls
    点击Visual C++ Components,选择Windows Multimedia library
    自动向StdAfx.h 文件添加
    #include <MMSystem.h>
    // CG: The following line was added by the Windows Multimedia component.
    #pragma comment(lib, "winmm.lib")
      

  6.   

    楼上说的极是,不过你肯定没忘记windows.h吧如果是mfc就是stadfx.h