Vfw32.dll and capGetDriverDescription

Hello,

i've been trying to create a small snippet to list
video drivers using AVICap class (http://msdn.microsoft.com/en-us/library/ms707201(VS.85).aspx).

However, for some reason the linker is unable to find
the library containing the function. I've tried to check
the options and settings that they contain "$SDK/Lib" and "$SDK/Include"
where the needed components reside. Below is the linker error followed
by the code. I use Visual C++ 08 express edition and windows xp.

////////////

.obj: error LNK2019: unresolved external symbol _capGetDriverDescriptionW@20 referenced in function _wmain
.exe: fatal error LNK1120: 1 unresolved externals

///////////


#include "stdafx.h"
#include <windows.h>
#include <Vfw.h>


int _tmain(int argc, _TCHAR* argv[])
{

wchar_t szDeviceName[80];
wchar_t szDeviceVersion[80];

for (int wIndex = 0; wIndex < 10; wIndex++) {

if (capGetDriverDescription(
wIndex,
szDeviceName,
sizeof (szDeviceName),
szDeviceVersion,
sizeof (szDeviceVersion)
)) {

// TODO
}//if

}//for

return 0;
}


I just figured out the solution.
I don't know why the Vfw32.dll could not be found with just Lib path includes,
but i got the code compiled by manually adding existing libraries
from the project explorer.
Topic archived. No new replies allowed.