00001 #include <conio.h>
00002 #include "Common/Console.h"
00003 #include "Common/Types.h"
00004 #include "Client/GameClient.h"
00005
00006 #include <crtdbg.h>
00007
00008
00009 int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
00010 {
00011
00012
00013
00014
00015
00016
00017 KGameClient *pGameClient = new KGameClient( hInstance );
00018
00019 if( !pGameClient->Init() )
00020 {
00021
00022
00023 Deletep( pGameClient );
00024 return -1;
00025 }
00026
00027 pGameClient->Run();
00028 pGameClient->End();
00029
00030 Deletep( pGameClient );
00031
00032
00033
00034 return 0;
00035 }