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

vs2005+gidplus解决办法

2012-02-20 
vs2005+gidplus在vs2005里用GDI+绘图要哪些设置?我写的程序怎么就不行,错误如下:正在链接...ddView.obj:er

vs2005+gidplus
在vs2005里用GDI+绘图要哪些设置?
我写的程序怎么就不行,错误如下:
正在链接...
ddView.obj   :   error   LNK2019:   无法解析的外部符号   _GdiplusShutdown@4,该符号在函数   "public:   virtual   void   __thiscall   CddView::OnDraw(class   CDC   *) "   (?OnDraw@CddView@@UAEXPAVCDC@@@Z)   中被引用
ddView.obj   :   error   LNK2019:   无法解析的外部符号   _GdipCreatePen1@16,该符号在函数   "public:   __thiscall   Gdiplus::Pen::Pen(class   Gdiplus::Color   const   &,float) "   (??0Pen@Gdiplus@@QAE@ABVColor@1@M@Z)   中被引用
ddView.obj   :   error   LNK2019:   无法解析的外部符号   _GdipDeletePen@4,该符号在函数   "public:   __thiscall   Gdiplus::Pen::~Pen(void) "   (??1Pen@Gdiplus@@QAE@XZ)   中被引用
ddView.obj   :   error   LNK2019:   无法解析的外部符号   _GdipCreateFromHDC@8,该符号在函数   "public:   __thiscall   Gdiplus::Graphics::Graphics(struct   HDC__   *) "   (??0Graphics@Gdiplus@@QAE@PAUHDC__@@@Z)   中被引用
ddView.obj   :   error   LNK2019:   无法解析的外部符号   _GdipDeleteGraphics@4,该符号在函数   "public:   __thiscall   Gdiplus::Graphics::~Graphics(void) "   (??1Graphics@Gdiplus@@QAE@XZ)   中被引用
ddView.obj   :   error   LNK2019:   无法解析的外部符号   _GdipDrawLineI@24,该符号在函数   "public:   enum   Gdiplus::Status   __thiscall   Gdiplus::Graphics::DrawLine(class   Gdiplus::Pen   const   *,int,int,int,int) "   (?DrawLine@Graphics@Gdiplus@@QAE?AW4Status@2@PBVPen@2@HHHH@Z)   中被引用
ddView.obj   :   error   LNK2019:   无法解析的外部符号   _GdiplusStartup@12,该符号在函数   "public:   virtual   void   __thiscall   CddView::OnInitialUpdate(void) "   (?OnInitialUpdate@CddView@@UAEXXZ)   中被引用
F:\Graphy\dd\Debug\dd.exe   :   fatal   error   LNK1120:   7   个无法解析的外部命令

[解决办法]
Add gdiplus.lib to the Additional Dependencies (Project + properties, Linker, Input).
[解决办法]
up

热点排行