我剛開始學習windows編程,我按照YouTube上的教程,但我得到了這個錯誤,我不知道爲什麼,我只是正確地按照他做的,他沒有得到這個錯誤。這裏是代碼。peekmessage(創建窗口循環)
//Main application loop
MSG msg = {0};
while(WM_QUIT != msg.message())
{
if(PeekMessage(&msg, NULL, NULL, NULL, PM_Remove))
{
//Translate message
TranslateMessage(&msg);
//Dispatch message
DispatchMessage(&msg);
}
}
,這裏是錯誤:
error C2064: term does not evaluate to a function taking 0 arguments
fatal error C1903: unable to recover from previous error(s); stopping compilation
,當我點擊它,他們都指向while循環。謝謝。
你遵循什麼教程? – Default 2013-04-29 08:58:05
遲早你應該讀一本書。 – john 2013-04-29 09:44:16