error LNK2001: 无法解析的外部符号 __imp__DeleteDC@4

转自VC错误:http://www.vcerror.com/?p=1523

问题描述:

error LNK2019: 无法解析的外部符号 __imp__BitBlt@36,该符号在函数 "public: int __thiscall CMemDC::DrawTo(struct HWND__ *,struct HDC__ *,struct tagRECT *,int)" (?DrawTo@CMemDC@@QAEHPAUHWND__@@PAUHDC__@@PAUtagRECT@@H@Z) 中被引用
error LNK2001: 无法解析的外部符号 __imp__BitBlt@36error LNK2019: 无法解析的外部符号 __imp__CreateCompatibleDC@4,该符号在函数 "public: void __thiscall CMemDC::SetSize(struct HWND__ *,int,int)" (?SetSize@CMemDC@@QAEXPAUHWND__@@HH@Z) 中被引用
error LNK2001: 无法解析的外部符号 __imp__CreateCompatibleDC@4
error LNK2019: 无法解析的外部符号 __imp__DeleteDC@4,该符号在函数 "public: __thiscall CMemDC::~CMemDC(void)" (??1CMemDC@@QAE@XZ) 中被引用
error LNK2001: 无法解析的外部符号 __imp__DeleteDC@4
error LNK2019: 无法解析的外部符号 __imp__DeleteObject@4,该符号在函数 "public: __thiscall CMemDC::~CMemDC(void)" (??1CMemDC@@QAE@XZ) 中被引用
error LNK2001: 无法解析的外部符号 __imp__DeleteObject@4
error LNK2019: 无法解析的外部符号 __imp__SelectObject@8,该符号在函数 "public: void __thiscall CMemDC::SetSize(struct HWND__ *,int,int)" (?SetSize@CMemDC@@QAEXPAUHWND__@@HH@Z) 中被引用
error LNK2001: 无法解析的外部符号 __imp__SelectObject@8
error LNK2019: 无法解析的外部符号 __imp__SetBkMode@8,该符号在函数 "public: void __thiscall CMemDC::SetSize(struct HWND__ *,int,int)" (?SetSize@CMemDC@@QAEXPAUHWND__@@HH@Z) 中被引用
error LNK2001: 无法解析的外部符号 __imp__SetBkMode@8
error LNK2019: 无法解析的外部符号 __imp__CreateDIBSection@24,该符号在函数 "public: void __thiscall CMemDC::SetSize(struct HWND__ *,int,int)" (?SetSize@CMemDC@@QAEXPAUHWND__@@HH@Z) 中被引用
error LNK2001: 无法解析的外部符号 __imp__CreateDIBSection@24
error LNK2019: 无法解析的外部符号 __imp__CreateFontA@56,该符号在函数 "private: void __thiscall CWinXButton::DrawCaption(struct HDC__ *,unsigned int)" (?DrawCaption@CWinXButton@@AAEXPAUHDC__@@I@Z) 中被引用
error LNK2001: 无法解析的外部符号 __imp__CreateFontA@56
error LNK2019: 无法解析的外部符号 __imp__GetTextExtentPoint32A@16,该符号在函数 "private: void __thiscall CWinXButton::DrawCaption(struct HDC__ *,unsigned int)" (?DrawCaption@CWinXButton@@AAEXPAUHDC__@@I@Z) 中被引用
error LNK2019: 无法解析的外部符号 __imp__StretchBlt@44,该符号在函数 "public: int __thiscall CImageDC::DrawTo(struct HDC__ *,struct tagRECT *,struct tagRECT *)" (?DrawTo@CImageDC@@QAEHPAUHDC__@@PAUtagRECT@@1@Z) 中被引用
error LNK2001: 无法解析的外部符号 __imp__StretchBlt@44
error LNK2019: 无法解析的外部符号 __imp__SetTextColor@8,该符号在函数 "private: void __thiscall CWinXButton::DrawCaption(struct HDC__ *,unsigned int)" (?DrawCaption@CWinXButton@@AAEXPAUHDC__@@I@Z) 中被引用
error LNK2001: 无法解析的外部符号 __imp__SetTextColor@8
error LNK2019: 无法解析的外部符号 __imp__CreateSolidBrush@4,该符号在函数 "public: virtual int __thiscall CWinXDeskGameMain::OnEraseBgk(struct HDC__ *,struct tagRECT *,int)" (?OnEraseBgk@CWinXDeskGameMain@@UAEHPAUHDC__@@PAUtagRECT@@H@Z) 中被引用
error LNK2019: 无法解析的外部符号 __imp__CreatePolygonRgn@12,该符号在函数 "public: void __thiscall CWinXDeskGameMain::SetRgn(unsigned int,unsigned int)" (?SetRgn@CWinXDeskGameMain@@QAEXII@Z) 中被引用
error LNK2019: 无法解析的外部符号 __imp__GetBitmapBits@12,该符号在函数 "void * __cdecl LoadImageEx(struct HINSTANCE__ *,char const *,unsigned int,int,int,unsigned int,int *,int *,unsigned char * *,int *)" (?LoadImageEx@@YAPAXPAUHINSTANCE__@@PBDIHHIPAH2PAPAE2@Z) 中被引用
error LNK2019: 无法解析的外部符号 __imp__GetObjectA@12,该符号在函数 "void * __cdecl LoadImageEx(struct HINSTANCE__ *,char const *,unsigned int,int,int,unsigned int,int *,int *,unsigned char * *,int *)" (?LoadImageEx@@YAPAXPAUHINSTANCE__@@PBDIHHIPAH2PAPAE2@Z) 中被引用

解决方法:
具体的解决方法参考文章: http://www.vcerror.com/?p=1523
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值