Hi:

I am trying to compile the BindView application in the windows DDK. The
compilation instructions that came with it (type build ) don't work so
I created a project and am trying to compile it in visual studio.

I am getting link errors such as:

1>bindview.obj : error LNK2019: unresolved external symbol
__imp__SetupDiDestroyClassImageList@4 referenced in function "int
__stdcall MainDlgProc(struct HWND__ *,unsigned int,unsigned int,long)"
(?MainDlgProc@@YGHPAUHWND__@@IIJ@Z)
1>bindview.obj : error LNK2019: unresolved external symbol
__imp__SetupDiGetClassImageList@4 referenced in function "int __stdcall
MainDlgProc(struct HWND__ *,unsigned int,unsigned int,long)"
(?MainDlgProc@@YGHPAUHWND__@@IIJ@Z)
1>bindview.obj : error LNK2019: unresolved external symbol
__imp__SetupCloseInfFile@4 referenced in function "long __cdecl
GetPnpID(wchar_t *,wchar_t * *)" (?GetPnpID@@YAJPA_WPAPA_W@Z)
1>bindview.obj : error LNK2019: unresolved external symbol
__imp__SetupOpenInfFileW@16 referenced in function "long __cdecl
GetPnpID(wchar_t *,wchar_t * *)" (?GetPnpID@@YAJPA_WPAPA_W@Z)
1>bindview.obj : error LNK2019: unresolved external symbol
__imp__SetupGetStringFieldW@20 referenced in function "long __cdecl
GetKeyValue(void *,wchar_t const *,wchar_t const *,unsigned
long,wchar_t * *)" (?GetKeyValue@@YAJPAXPB_W1KPAPA_W@Z)
1>bindview.obj : error LNK2019: unresolved external symbol
__imp__SetupFindFirstLineW@16 referenced in function "long __cdecl
GetKeyValue(void *,wchar_t const *,wchar_t const *,unsigned
long,wchar_t * *)" (?GetKeyValue@@YAJPAXPB_W1KPAPA_W@Z)
1>bindview.obj : error LNK2019: unresolved external symbol
__imp__SetupDiGetClassImageIndex@12 referenced in function "int __cdecl
GetItemInfo(struct HWND__ *,struct _TREEITEM *,long *,unsigned long
*,int *)" (?GetItemInfo@@YAHPAUHWND__@@PAU_TREEITEM@@PAJPAKPAH@Z)
1>netcfgapi.obj : error LNK2019: unresolved external symbol
__imp__SetupCopyOEMInfW@32 referenced in function "long __cdecl
HrInstallNetComponent(struct INetCfg *,wchar_t const *,struct _GUID
const *,wchar_t const *)"
(?HrInstallNetComponent@@YAJPAUINetCfg@@PB_WPBU_GUID@@1@Z)
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol
_main referenced in function ___tmainCRTStartup
1>C:\Documents and
Settings\ksurlaker.NETCHEM\Desktop\bindview\Debug\bindview.exe : fatal
error LNK1120: 9 unresolved externals
1>Build log was saved at "file://c:\Documents and
Settings\ksurlaker.NETCHEM\Desktop\bindview\bindview\Debug\BuildLog.htm"
1>bindview - 10 error(s), 18 warning(s)


What lib file do I need to add to the project to fix this ?

Thanks,
Kapil

Re: Compiling the BindView application in Windows DDK by Maxim

Maxim
Fri Aug 04 18:45:49 CDT 2006

Add setupapi.lib to the project.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

<kapil.surlaker@gmail.com> wrote in message
news:1154730078.516728.107160@i3g2000cwc.googlegroups.com...
> Hi:
>
> I am trying to compile the BindView application in the windows DDK. The
> compilation instructions that came with it (type build ) don't work so
> I created a project and am trying to compile it in visual studio.
>
> I am getting link errors such as:
>
> 1>bindview.obj : error LNK2019: unresolved external symbol
> __imp__SetupDiDestroyClassImageList@4 referenced in function "int
> __stdcall MainDlgProc(struct HWND__ *,unsigned int,unsigned int,long)"
> (?MainDlgProc@@YGHPAUHWND__@@IIJ@Z)
> 1>bindview.obj : error LNK2019: unresolved external symbol
> __imp__SetupDiGetClassImageList@4 referenced in function "int __stdcall
> MainDlgProc(struct HWND__ *,unsigned int,unsigned int,long)"
> (?MainDlgProc@@YGHPAUHWND__@@IIJ@Z)
> 1>bindview.obj : error LNK2019: unresolved external symbol
> __imp__SetupCloseInfFile@4 referenced in function "long __cdecl
> GetPnpID(wchar_t *,wchar_t * *)" (?GetPnpID@@YAJPA_WPAPA_W@Z)
> 1>bindview.obj : error LNK2019: unresolved external symbol
> __imp__SetupOpenInfFileW@16 referenced in function "long __cdecl
> GetPnpID(wchar_t *,wchar_t * *)" (?GetPnpID@@YAJPA_WPAPA_W@Z)
> 1>bindview.obj : error LNK2019: unresolved external symbol
> __imp__SetupGetStringFieldW@20 referenced in function "long __cdecl
> GetKeyValue(void *,wchar_t const *,wchar_t const *,unsigned
> long,wchar_t * *)" (?GetKeyValue@@YAJPAXPB_W1KPAPA_W@Z)
> 1>bindview.obj : error LNK2019: unresolved external symbol
> __imp__SetupFindFirstLineW@16 referenced in function "long __cdecl
> GetKeyValue(void *,wchar_t const *,wchar_t const *,unsigned
> long,wchar_t * *)" (?GetKeyValue@@YAJPAXPB_W1KPAPA_W@Z)
> 1>bindview.obj : error LNK2019: unresolved external symbol
> __imp__SetupDiGetClassImageIndex@12 referenced in function "int __cdecl
> GetItemInfo(struct HWND__ *,struct _TREEITEM *,long *,unsigned long
> *,int *)" (?GetItemInfo@@YAHPAUHWND__@@PAU_TREEITEM@@PAJPAKPAH@Z)
> 1>netcfgapi.obj : error LNK2019: unresolved external symbol
> __imp__SetupCopyOEMInfW@32 referenced in function "long __cdecl
> HrInstallNetComponent(struct INetCfg *,wchar_t const *,struct _GUID
> const *,wchar_t const *)"
> (?HrInstallNetComponent@@YAJPAUINetCfg@@PB_WPBU_GUID@@1@Z)
> 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol
> _main referenced in function ___tmainCRTStartup
> 1>C:\Documents and
> Settings\ksurlaker.NETCHEM\Desktop\bindview\Debug\bindview.exe : fatal
> error LNK1120: 9 unresolved externals
> 1>Build log was saved at "file://c:\Documents and
> Settings\ksurlaker.NETCHEM\Desktop\bindview\bindview\Debug\BuildLog.htm"
> 1>bindview - 10 error(s), 18 warning(s)
>
>
> What lib file do I need to add to the project to fix this ?
>
> Thanks,
> Kapil
>


Re: Compiling the BindView application in Windows DDK by Stephan

Stephan
Sun Aug 06 03:51:43 CDT 2006

kapil.surlaker@gmail.com wrote:
> I am trying to compile the BindView application in the windows DDK. The
> compilation instructions that came with it (type build ) don't work
[..]

Sorry, but the DDK'S build command *does* work as expected.

Which DDK are you using?
How do you execute the build command?

Stephan