初学WinMain,跟着书敲代码。
编译环境:vs2019
重装过一遍win10 sdk,依然没有效果
网上搜索过解决方法 未解决 头文件也包含
```
#include <Windows.h>
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
MSG Msg;
BOOL bRet;
//注册窗口类
MyRegisterClass(hInstance);
//创建窗口并显示窗口
if (!InitInstance(hInstance, SW_SHOWNORMAL)){
return FALSE;
}
//消息循环
//获取属于自己的消息并进行分发
while ((bRet = GetMessage(&Msg, NULL, 0, 0)) != 0){
if (bRet == -1){
break;
}
else{
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
}
return Msg.wParam;
}
```

MyRegisterClass和nitInstance 显示未定义标识符