GetFileVersionInfo Problem

I'm trying to get version information for all *.exe on a computer, I've got the list of *.exe but when I try to get the version information using GetFileVersionInfo and GetFileVersionInfoSize and compile the program I get errors listed below
SoftwareConfig.obj : error LNK2001: unresolved external symbol _GetFileVersionInfoA@16
SoftwareConfig.obj : error LNK2001: unresolved external symbol _GetFileVersionInfoSizeA@8

I've tried including windows.h and winver.h without any help. I've tried to change the inline function setting, I'm not sure what I'm doing wrong.

Please, if anyone has information on this let me know, Thanks in advance.

Myddyn
[712 byte] By [Myddyn] at [2007-11-15 22:21:47]
# 1 Re: GetFileVersionInfo Problem
Add version.lib to the list of libraries in the project settings.
Alex Fedotov at 2007-11-10 3:06:13 >
# 2 Re: GetFileVersionInfo Problem
Hi,
Inspite of adding version.lib in project ->Linker -> additional dependencies, the error continues to occur.
marimuthu.pesit at 2007-11-10 3:07:13 >
# 3 Re: GetFileVersionInfo Problem
Click On Project From Menu Then Choose Setting Now From Project Setting Dialog Choose Link
Now From category Combo Choose Custimize .there you can see a Option on your Dialog Force File OutPut Check The Box and Rebuild your Project

Menu>>Project>>Setting>>Link>>Customize

Thanx
humptydumpty at 2007-11-10 3:08:12 >
# 4 Re: GetFileVersionInfo Problem
I couldnt figure out Menu>>Project>>Setting>>Link>>Customize.
could you be mode explicite?
I am using VS 2005
marimuthu.pesit at 2007-11-10 3:09:07 >
# 5 Re: GetFileVersionInfo Problem
oh I THink you used you are using VC6.0.in case of VS2005 i have to check how we can achieve this.

Thanx
humptydumpty at 2007-11-10 3:10:17 >
# 6 Re: GetFileVersionInfo Problem
I am using visual studio 2005 i.e, VC 8.0.
The menus etc are slightly modified there.
Could you guide me?
marimuthu.pesit at 2007-11-10 3:11:08 >