コード例 #1
0
ファイル: WinMain.cpp プロジェクト: ElanHR/Provincial
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;
}