转自:http://blog.csdn.net/swanabin/article/details/42100851
错误:
error LNK2001: 无法解析的外部符号 __imp__MessageBoxA@16
error LNK2001: 无法解析的外部符号 __imp__SendMessageA@16
error LNK2001: 无法解析的外部符号 __imp__SendMessageW@16
error LNK2001: 无法解析的外部符号 __imp__FindWindowA@8
原因:
本来程序的编译选项选择的是:使用标准windows库,当改为在静态库中使用MFC后就出现了上面的错误
解决方法
代码中添加依赖库
#pragma comment(lib, “User32.lib”)