hye,
i'm very new to object oriented programming.i dont know why i get this error LNK 2019.I'm using VB2005 using MFC dialog based with a static library.
i'm trying to use SetupDiGetClassDev to get the device information set.i've already get to implement the function,however there's problem with the linking part.it appears this in the output box:
1>Linking...
1>THIRD.obj : error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsW@16 referenced in function "void __cdecl `dynamic initializer for 'hardwareDeviceInfo''(void)" (??__EhardwareDeviceInfo@@YAXXZ)
1>C:\Documents and Settings\nmoham5\Desktop\THIRD\Debug\THIRD.exe : fatal error LNK1120: 1 unresolved externals
This is the code that i wrote,if i comment out this line.it will compiles and link perfectly:
HDEVINFO hardwareDeviceInfo = SetupDiGetClassDevs(&Audio_IoCTL,NULL,NULL,DIGCF_P RESENT|DIGCF_DEVICEINTERFACE);
here are the library that i include in order for the compiler to compiles perfectly:
#include <InitGuid.h>
#include <winnt.h>
#include <Setupapi.h>
What should i do next to eliminate this error?i'm very new to this environment,so please bear with me.