Thursday, January 26, 2006

GetFileVersionInfo error

Trying to integrate a C++ MFC project with an existing Win32 C project. GetFileVersionInfoSize throws up the following errors:

PicomCD error LNK2001: unresolved external symbol _GetFileVersionInfoA@16
PicomCD error LNK2001: unresolved external symbol _GetFileVersionInfoSizeA@8
PicomCD error LNK2001: unresolved external symbol _VerQueryValueA@16

This is removed by including the following line in the cpp file:

#pragma comment(lib, "version.lib")

0 Comments:

Post a Comment

<< Home