error LNK2019: 无法解析的外部符号 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z),该符号在函数 _WinMain@16 中被引用

检查窗口处理函数是否书写正确,如果声明正确,定义写错,不会报错,会显示error LNK2019: 无法解析的外部符号 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z),该符号在函数 _WinMain@16 中被引用。

原文地址:https://www.cnblogs.com/nanfengnan/p/13699048.html