/**********************感谢关注********************/
///////////////////////Creamdog/////////////////////BOOL PlaySound(
  LPCSTR pszSound,  
  HMODULE hmod,     
  DWORD fdwSound    
);

解决方案 »

  1.   

    PlaySound()没有用,G:\vc++\gf\gfDlg.cpp(176) : error C2065: 'PlaySound' : undeclared identifier
    G:\vc++\gf\gfDlg.cpp(176) : error C2065: 'SND_SYNC' : undeclared identifier为什么?
      

  2.   

    PlaySound() need the header file
    Mmsystem.h
      

  3.   

    MCIERROR mciSendCommand(
      MCIDEVICEID IDDevice,  
      UINT uMsg,             
      DWORD fdwCommand,      
      DWORD dwParam          
    )
      

  4.   

    MCIERROR mciSendCommand(
      MCIDEVICEID IDDevice,  
      UINT uMsg,             
      DWORD fdwCommand,      
      DWORD dwParam          
    );
      

  5.   

    /***********************感谢关注***********************/
    ////////////////////////Creamdog////////////////////////在头文件中加入Mmsystem.h
    再在链接里加上Winmm.lib
    好了,你可以结贴了
      

  6.   

    sndPlaySound("**",SND_ASYNC)
    **表示你的wav文件的路径.当然条件通上