when i try and compile using the hashing.h and cpp files i get link errors. ive even made a completely blank program and included hashing.h and still same link errors:
Linking...
Hashing.obj : error LNK2001: unresolved external symbol _VerQueryValueA@16
Hashing.obj : error LNK2001: unresolved external symbol _GetFileVersionInfoA@16
Hashing.obj : error LNK2001: unresolved external symbol _GetFileVersionInfoSizeA@8
Debug/main.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
main.exe - 4 error(s), 0 warning(s)
Make sure you include "Version.lib"
(If you're using VC++ go to Project -> Settings [Alt + F7] -> Link)
aha!
Or you could write this in Hashing.cpp.
#pragma comment(lib, "version.lib")