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

Thread: PlaySound

  1. #1
    Join Date
    Apr 1999
    Posts
    18

    PlaySound

    When i try to use the PlaySound() function i get this link error

    error LNK2001: unresolved external symbol __imp__PlaySoundA@12




    i dont know how to fix it, i've included mmsystem.h, and tried windows.h, but it still gives me this error, how do i fix it?

    Of all the things I've lost I miss my mind the most

  2. #2
    Join Date
    Apr 1999
    Posts
    26

    Re: PlaySound

    That error is caused by the compiler can't find the implementation function of PlaySound.
    Link the winmm.lib into your project.



  3. #3
    Guest

    Re: PlaySound

    I think you forget to add a library file ".lib" to your visual c project.

    look in playsound help to known which .lib file to include.

    Stephane BLANC
    France
    [email protected]



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