Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. unresolved external symbol __imp__PlaySoundW@12

unresolved external symbol __imp__PlaySoundW@12

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpvisual-studiojsonlounge
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gateway23
    wrote on last edited by
    #1

    friends .i am working in visual studio and learnng windows api. I complied a code and getting the following error.. error LNK2019: unresolved external symbol __imp__PlaySoundW@12 referenced in function _WndProc@16 fatal error LNK1120: 1 unresolved externals i googled and found the solution to add a WINMM.lib file to my project. i add this lib file at "project property pages->Linker->General->Additional Library Directories" but the error appears again and again. can anyone please help..

    N C 2 Replies Last reply
    0
    • G gateway23

      friends .i am working in visual studio and learnng windows api. I complied a code and getting the following error.. error LNK2019: unresolved external symbol __imp__PlaySoundW@12 referenced in function _WndProc@16 fatal error LNK1120: 1 unresolved externals i googled and found the solution to add a WINMM.lib file to my project. i add this lib file at "project property pages->Linker->General->Additional Library Directories" but the error appears again and again. can anyone please help..

      N Offline
      N Offline
      Niklas L
      wrote on last edited by
      #2

      Verify that you added the library under the right configuration (debug/release). You probably want to add it to all your configurations.

      home

      1 Reply Last reply
      0
      • G gateway23

        friends .i am working in visual studio and learnng windows api. I complied a code and getting the following error.. error LNK2019: unresolved external symbol __imp__PlaySoundW@12 referenced in function _WndProc@16 fatal error LNK1120: 1 unresolved externals i googled and found the solution to add a WINMM.lib file to my project. i add this lib file at "project property pages->Linker->General->Additional Library Directories" but the error appears again and again. can anyone please help..

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        gateway23 wrote:

        project property pages->Linker->General->Additional Library Directories"

        You should only specify the folder there, not the library itself. To specify that your project has to link with this lib file, you have to specify it into "Linker -> Input -> Additional Dependencies".

        Cédric Moonen Software developer
        Charting control [v3.0] OpenGL game tutorial in C++

        G 1 Reply Last reply
        0
        • C Cedric Moonen

          gateway23 wrote:

          project property pages->Linker->General->Additional Library Directories"

          You should only specify the folder there, not the library itself. To specify that your project has to link with this lib file, you have to specify it into "Linker -> Input -> Additional Dependencies".

          Cédric Moonen Software developer
          Charting control [v3.0] OpenGL game tutorial in C++

          G Offline
          G Offline
          gateway23
          wrote on last edited by
          #4

          thanks Cédric Moonen ,, now my project plays sounds fine.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups