我到处搜索,但无济于事。有人可以告诉我这段代码有什么问题吗?它给了我“错误:标识符“XXX”未定义”
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
MSG msg;
MyRegisterClass(hInstance);
if(!InitInstance (hInstance, nCmdShow))
return false;
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}