-2
我到處搜索過,但無濟於事。有人能告訴我這段代碼有什麼問題嗎?這是給我的「錯誤:標識符‘XXX’是不確定的」如何在簡單的C++應用程序中修復「標識符未定義」錯誤?
#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;
}
沒有MyRegisterClass也不InitInstance中的全局函數什麼是XXX嗎? –
如果我的編譯器給了我這個錯誤,我會把它從計算機中取出並扔出窗外。 – chris
它是真的說「XXX」還是某個實際上可以用來嘗試解決問題的符號的佔位符? –