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. waveOutGetNumDevs

waveOutGetNumDevs

Scheduled Pinned Locked Moved C / C++ / MFC
databasedebugginghelpquestion
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.
  • M Offline
    M Offline
    Mark Donkers
    wrote on last edited by
    #1

    Hello, I'm trying to query whether the PC has a soundcard or not. I #include , and I try to use waveOutGetNumDevs(), but I get the following linker error. MainFrm.obj : error LNK2001: unresolved external symbol __imp__waveOutGetNumDevs@0 Debug/Clockster.exe : fatal error LNK1120: 1 unresolved externals What am I missing? :confused: Thanks in advance. Marcus Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope -- Daniel Burnham

    B E 2 Replies Last reply
    0
    • M Mark Donkers

      Hello, I'm trying to query whether the PC has a soundcard or not. I #include , and I try to use waveOutGetNumDevs(), but I get the following linker error. MainFrm.obj : error LNK2001: unresolved external symbol __imp__waveOutGetNumDevs@0 Debug/Clockster.exe : fatal error LNK1120: 1 unresolved externals What am I missing? :confused: Thanks in advance. Marcus Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope -- Daniel Burnham

      B Offline
      B Offline
      Bernhard
      wrote on last edited by
      #2

      do you link to the "Winmm.lib" ? Project Settings / Linker and add that library to the list.. i have not used this function ever before.. but i think this should work bernhard


      Sometimes I think the surest sign for intelligent life elsewhere in the universe is that none of them ever tried to contact us.

      1 Reply Last reply
      0
      • M Mark Donkers

        Hello, I'm trying to query whether the PC has a soundcard or not. I #include , and I try to use waveOutGetNumDevs(), but I get the following linker error. MainFrm.obj : error LNK2001: unresolved external symbol __imp__waveOutGetNumDevs@0 Debug/Clockster.exe : fatal error LNK1120: 1 unresolved externals What am I missing? :confused: Thanks in advance. Marcus Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope -- Daniel Burnham

        E Offline
        E Offline
        Ernest Laurentin
        wrote on last edited by
        #3

        Add this to your stdafx.h

        #pragma comment(lib, "winmm")

        - God bless the World

        M 1 Reply Last reply
        0
        • E Ernest Laurentin

          Add this to your stdafx.h

          #pragma comment(lib, "winmm")

          - God bless the World

          M Offline
          M Offline
          Mark Donkers
          wrote on last edited by
          #4

          Gentlemen, Thank you for the solutions. I went Ernest's so that I can keep it in the source files. Have a good one... Marcus Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope -- Daniel Burnham

          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