AtlSample1.obj : error LNK2001: unresolved external symbol __imp__ImageList_ReplaceIcon@12
2011-06-15 10:52
543 查看
做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" )
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" )
相关文章推荐
- Rtsp.obj : error LNK2001: unresolved external symbol __imp__socket@12
- strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __imp__strrchr
- 关于error LNK2001: unresolved external symbol __imp__gethostbyaddr@12
- officeView.obj : error LNK2001: unresolved external symbol __imp__PathFileExistsA@4
- 关于error LNK2001: unresolved external symbol __imp__gethostbyaddr@12
- VC 6.0 serverDlg.obj : error LNK2001: unresolved external symbol __imp__listen@8编译错误
- opencv hello.obj : error LNK2001: unresolved external symbol _cvNamedWindow
- FlashlconDlg.obj : error LNK2001: unresolved external symbol "protected: void __thiscall CFlashlconDlg::OnExit(void)" 的解决
- error LNK2001: unresolved external symbol __imp__Shell_GetImageLists@8
- error LNK2001: unresolved external symbol __imp
- DSHOW编译错误:strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates" (?g_Templates@@3PAVCFactoryTemplate@@A)
- msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16 wWinMainCRTStartup
- error LNK2001: unresolved external symbol __imp__recv@16
- 关于"testencodefile.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public"
- nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
- vc中遇到错误提示:nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
- vc中遇到错误提示:nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
- error LNK2001: unresolved external symbol __imp__WSAStartup@8 SOCKET应用显示错误时的解决方法
- libcpmt.lib(cerr.obj) : error LNK2001: unresolved external symbol @__security_ch
- vc中遇到错误提示:nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex