【发布时间】:2013-01-11 01:59:53
【问题描述】:
我到处搜索,但无济于事。有人可以告诉我这段代码有什么问题吗?它给了我“错误:标识符“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;
}
【问题讨论】:
-
这里的XXX是什么?
-
如果我的编译器给了我这个错误,我会把它从我的电脑里撕下来扔到窗外。
-
它是真的说“XXX”还是某个符号的占位符,实际上可以用来尝试解决问题?
-
XXX 用于 TODO cmets,可能是您从评论中删除了评论标记
//。搜索XXX行并注释掉
标签: c++ undefined message identifier