예제 #1
0
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
    LPSTR lpszCmdLine, int nCmdShow)
{
    App *A = new App;                    //create a new App
    A->Init(hInstance, nCmdShow);        //initalize App
    A->MessageLoop(hInstance, nCmdShow); //begin App's "lifetime" (looping for messages.  all frames occur here.)
    A->FreeMemory();                     //kill App
    return 0;                            //exit Main
}
예제 #2
0
파일: WinMain.cpp 프로젝트: konlil/kexe
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
{
	App *a = new App;
	a->Init(hInstance, nCmdShow);
	a->MessageLoop(hInstance, nCmdShow);
	a->FreeMemory();
	delete a;

	return 0;
}