vc++ 错误 CreateWindow

错误 1 error LNK2028: 无法解析的标记(0A00000F) "extern "C" struct HWND__ * __stdcall CreateWindowExA(unsigned long,char const *,char const *,unsigned long,int,int,int,int,struct HWND__ *,struct HMENU__ *,struct HINSTANCE__ *,void *)" (?CreateWindowExA@@$$J248YGPAUHWND__@@KPBD0KHHHHPAU1@PAUHMENU__@@PAUHINSTANCE__@@PAX@Z),该标记在函数 "private: void __clrcall p2pClient::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click@Form1@p2pClient@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) 中被引用 p2pClient.obj 
----------------------------------------------------------------------
 开发工具vs2005
解决办法:
附加依赖库添加方法有2种。
1、直接在程序中使用宏调用 #pragma comment(lib,"user32.lib")
2、在工程属性对话框内的连接器->输入页面中添加依赖项"user32.lib"


原文地址:https://www.cnblogs.com/smallmuda/p/1217441.html