waveOutGetNumDevs
-
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
-
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
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.
-
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
Add this to your stdafx.h
#pragma comment(lib, "winmm")
- God bless the World
-
Add this to your stdafx.h
#pragma comment(lib, "winmm")
- God bless the World
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