我在测试别人的代码时用到 GetFileVersionInfo,奇怪的是用他的源代码测试时没有问题,把他的代码拷贝到我的工程中就出现:error LNK2019:无法解析的外部符号 _GetFileVersionInfoA@16 错误。我仔细检查了我与他的头文件都一样,怎么我这里就编译通不过?而且GetFileVersionInfo在错误提示中变成了_GetFileVersionInfoA@16
解决方案 »
- 关于指针越界的问题,麻烦大家帮帮忙。
- CXPButton::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)中的一个问题
- 关于CtypedPtrList的问题,帮忙解惑
- 菜鸟与大虾
- 为什么钩子抓不到WM_QUERYENDMESSION和WM_ENDMESSION消息?
- error C2297 怎么修正?
- ************* 100 ReadProcessMemory 100 ***********求救!
- 请问,哪里有完整的MFC下载
- vs2012编译vs2010工程失败
- 求问,图片控件上如何快速选取其他控件呢?
- 请问要做网络方面的软件,还要设计网络各个层次,需要看哪方面的书,用VC的MFC可以吗
- 我得程序使用了#include <afx.h> 怎么就报错!!!
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Winver.h; include Windows.h.
Library: Use Version.lib.
把Version.lib加到你的工程里面
在project->setting 里面的link里面的input
里面加上
Windows CE OS 3.0 and later Winbase.h Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API._GetFileVersionInfoA@16计算机会把函数翻译成这个样子的
A表示是Ansi的
好象是W表示unicode
#Pragma comment(lib,"Version.lib")