error LNK2019: 无法解析的外部符号 "public: __thiscall CGdipButton::CGdipButton(void)" (??0CGdipButton@@QAE@XZ),该符号在函数 "public: __thiscall TestWindow::TestWindow(class CWnd *)" (??0TestWindow@@QAE@PAVCWnd@@@Z) 中被引用
在头文件中已经加了相关的头文件
#include "gdipbutton.h"
但会提示这个链接错误.
解决办法: 将.cpp中构造函数和析构函数的实现放在.h头文件中
不知道为什么会这样
其他详解: http://blog.sina.com.cn/s/blog_9015f32301014pix.html