首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

少了什么变为这样了=.=b

2012-10-11 
少了什么变成这样了.b1正在生成代码...1DrawTools.obj : error LNK2019: 无法解析的外部符号 public:

少了什么变成这样了=.=b
1> 正在生成代码...
1>DrawTools.obj : error LNK2019: 无法解析的外部符号 "public: int __thiscall CDrawTools::AlphaBlend(struct HDC__ *,int,int,int,int,struct HDC__ *,int,int,int,int,struct _BLENDFUNCTION)" (?AlphaBlend@CDrawTools@@QAEHPAUHDC__@@HHHH0HHHHU_BLENDFUNCTION@@@Z),该符号在函数 "public: void __thiscall CDrawTools::Translucence(struct HDC__ * &,wchar_t const *,int,int,int,int,struct _BLENDFUNCTION,int)" (?Translucence@CDrawTools@@QAEXAAPAUHDC__@@PB_WHHHHU_BLENDFUNCTION@@H@Z) 中被引用
1>DrawTools.obj : error LNK2019: 无法解析的外部符号 "public: struct CDrawTools::ImageInfo __thiscall CDrawTools::ImLoadImage(wchar_t const *,int)" (?ImLoadImage@CDrawTools@@QAE?AUImageInfo@1@PB_WH@Z),该符号在函数 "public: void __thiscall CDrawTools::MyLoadImage(wchar_t const *,wchar_t const *,int)" (?MyLoadImage@CDrawTools@@QAEXPB_W0H@Z) 中被引用
1>C:\Users\Eric\Documents\Visual Studio 2010\Projects\HeroOfTheHorde\Debug\HeroOfTheHorde.exe : fatal error LNK1120: 2 个无法解析的外部命令
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========

话说,像AlphaBlend(),ImageInfo()云云,都是系统自带,咋就不认识了,天啊。。。#include <windows,wingdi>#pragma comment (lib,"msgdi32.dll")飘过。。。

[解决办法]
http://blog.csdn.net/lsmdiao0812/article/details/3324640

注意添加 #pragma comment(lib,"Msimg32.lib")库 不是 "msgdi32.dll"

热点排行