做http://www.vckbase.com/document/viewdoc/?id=1389这篇文章的例子时,需要添加#include <CommCtrl.h>文件 ,出现了 下面问题:
AtlSample1.obj : error LNK2001: unresolved external symbol __imp__ImageList_ReplaceIcon@12
AtlSample1.obj : error LNK2001: unresolved external symbol __imp__ImageList_Create@20
Debug/AtlSample1.dll : fatal error LNK1120: 2 unresolved externals
错误解决方法:
Header commctrl.h
Import library comctl32.lib Imgctl.lib
在 stdafx.h这样加
入。。。
#pragma comment( lib, "comctl32.lib" )
本文解决在使用ImageList组件时遇到的LNK2001和LNK1120错误。通过正确引用comctl32.lib库文件,可以有效解决未解析外部符号的问题。
4656

被折叠的 条评论
为什么被折叠?



