#include<Windows.h>
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR LpCmdLine,
int nCmdShow)
{
//declare variables
MSG msg;
//register the class
MyRegisterClass(hInstance);
//initialize application
if(!InitIstance(hInstance,nCmdShow))
return false;
//main message loop
while(GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
đây là code trong cuốn begin game programming nó báo lỗi ở MyRegisterClass và câu lệnh If mong mọi người giúp xem mình sai ở đâu
tiện thể giải thích cho mình các tham số trong hàm WinMain nhé......chân thành cám ơn mọi người !!!!!!
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR LpCmdLine,
int nCmdShow)
{
//declare variables
MSG msg;
//register the class
MyRegisterClass(hInstance);
//initialize application
if(!InitIstance(hInstance,nCmdShow))
return false;
//main message loop
while(GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
đây là code trong cuốn begin game programming nó báo lỗi ở MyRegisterClass và câu lệnh If mong mọi người giúp xem mình sai ở đâu
tiện thể giải thích cho mình các tham số trong hàm WinMain nhé......chân thành cám ơn mọi người !!!!!!
Comment