CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: PlaySound

  1. #1
    Guest

    PlaySound

    I am using the function PlaySound but when I build my project, I get this error message :

    TicTacView.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12

    Even if I rebuild all, it still happens, thanks in advance...


  2. #2
    Join Date
    May 1999
    Location
    UK
    Posts
    65

    Re: PlaySound

    Can you provide some more information on this problem. i.e. The code snippet that uses your PlaySound Call.

    Standard format is something like :-
    PlaySound(MAKEINTRESOURCE(IDR_DOING_WAVE), NULL, SND_RESOURCE | SND_ASYNC | SND_MEMORY);

    You need to include
    #include <mmsystem.h>

    and add

    winmm.lib

    In your link build file.

    Cheers
    Jason.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured