locked
Why can't I link sndPlaySound? RRS feed

  • Question

  • Why can't I link sndPlaySound in Visual Studio 2000?
    Wednesday, December 8, 2010 2:13 AM

Answers

  • >How do I add it to my linker inputs?

    By following the directions at the first blue link which
    ildjarn gave you.

    Alternatively, you can put this line at the start of your
    program after the #include statements:

    #pragma comment(lib, "winmm.lib")

    - Wayne


    Thank you!  The #pragma worked.  One last question, is there anyway to do this inside Visual Studio 2008?
    • Marked as answer by Grant Bonnell Tuesday, February 12, 2013 10:00 PM
    Wednesday, December 8, 2010 10:35 PM
  • By following the directions at the first blue link which ildjarn gave you.

    • Marked as answer by Grant Bonnell Thursday, December 9, 2010 1:21 AM
    Wednesday, December 8, 2010 10:43 PM

All replies

  • Why can't I link sndPlaySound in Visual Studio 2000?

    Sorry that should have been 2008.
    Wednesday, December 8, 2010 2:16 AM
  • Have you added winmm.lib to your linker inputs as the documentation says to?

    Wednesday, December 8, 2010 2:19 AM
  • Have you added winmm.lib to your linker inputs as the documentation says to?


    How do I add it to my linker inputs?
    Wednesday, December 8, 2010 2:56 AM
  • >How do I add it to my linker inputs?

    By following the directions at the first blue link which
    ildjarn gave you.

    Alternatively, you can put this line at the start of your
    program after the #include statements:

    #pragma comment(lib, "winmm.lib")

    - Wayne

    Wednesday, December 8, 2010 3:57 AM
  • >How do I add it to my linker inputs?

    By following the directions at the first blue link which
    ildjarn gave you.

    Alternatively, you can put this line at the start of your
    program after the #include statements:

    #pragma comment(lib, "winmm.lib")

    - Wayne


    Thank you!  The #pragma worked.  One last question, is there anyway to do this inside Visual Studio 2008?
    • Marked as answer by Grant Bonnell Tuesday, February 12, 2013 10:00 PM
    Wednesday, December 8, 2010 10:35 PM
  • By following the directions at the first blue link which ildjarn gave you.

    • Marked as answer by Grant Bonnell Thursday, December 9, 2010 1:21 AM
    Wednesday, December 8, 2010 10:43 PM