摘要:
#include <windows.h>LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);//窗口处理函数声明 //图形框架,入口函数WinMain ,窗口处理函数WndProc //入口函数WinMainint WINAPI WinMain( 阅读全文
摘要:
检查窗口处理函数是否书写正确,如果声明正确,定义写错,不会报错,会显示error LNK2019: 无法解析的外部符号 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAU 阅读全文
摘要:
打开项目属性页 更改上图红色框内容为/subsystem:windows。如果是刚开始默认的是/subsystem:windows 则改为/subsytem:console 阅读全文