From: nyash on
I am writing a C++ dialog based MFC application that will be
communicating with devices on a IEEE 1394 network. As such, my
application will need to identify all the interfaces on the PC. I am
calling function such as SetupDiGetDeviceInterfaceDetail,
SetupDiEnumDeviceInterface and SetupDiEnumDeviceInterfaces. My problem
is that I have reused code that was written in Visual studio 2003. I am
using Visual Studio 2005 and I get compiler/linker errors as shown
below:

1>Linking...

1>Windows1394Interface.obj : error LNK2019: unresolved external symbol
__imp__SetupDiDestroyDeviceInfoList@4 referenced in function "private:
__thiscall Windows1394Interface::Windows1394Interface(unsigned long)"
(??0Windows1394Interface@@AAE@K@Z)

1>Windows1394Interface.obj : error LNK2019: unresolved external symbol
__imp__SetupDiGetDeviceInterfaceDetailW(a)24 referenced in function
"private: __thiscall
Windows1394Interface::Windows1394Interface(unsigned long)"
(??0Windows1394Interface@@AAE@K@Z)

1>Windows1394Interface.obj : error LNK2019: unresolved external symbol
__imp__SetupDiEnumDeviceInterfaces(a)20 referenced in function "private:
__thiscall Windows1394Interface::Windows1394Interface(unsigned long)"
(??0Windows1394Interface@@AAE@K@Z)

1>Windows1394Interface.obj : error LNK2019: unresolved external symbol
__imp__SetupDiGetClassDevsExW(a)28 referenced in function "private:
__thiscall Windows1394Interface::Windows1394Interface(unsigned long)"
(??0Windows1394Interface@@AAE@K@Z)

1>C:\TestApplication\HALTestApp\Debug\HALTestApp.exe : fatal error
LNK1120: 4 unresolved externals

1>Build log was saved at
"file://c:\TestApplication\HALTestApp\Debug\BuildLog.htm"

1>HALTestApp - 5 error(s), 0 warning(s)

Can anyone help