1 // nlite.cpp :
\83A
\83v
\83\8a\83P
\81[
\83V
\83\87\83\93\82Ì
\83G
\83\93\83g
\83\8a \83|
\83C
\83\93\83g
\82ð
\92è
\8b`
\82µ
\82Ü
\82·
\81B
5 #include "nlite_include.h"
10 const nlite::CApplicationInfo* appInfo = NULL;
15 static BOOL InitializeNlite(); //
\83A
\83v
\83\8a\83P
\81[
\83V
\83\87\83\93\8f\89\8aú
\89»
16 static VOID FinalizeNlite(); //
\83A
\83v
\83\8a\83P
\81[
\83V
\83\87\83\93\8fI
\97¹
\8f\88\97\9d
17 int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE,
18 LPTSTR lpCmdLine, int nCmdShow)
23 if(_Module.Init(NULL, hInstance) != S_OK){
24 throw AppInitException();
27 if(InitializeNlite() != TRUE){
28 throw AppInitException();
34 _Module.AddMessageLoop(&theLoop);
36 //
\93Æ
\8e©
\83E
\83B
\83\93\83h
\83E
\82ð
\8dì
\90¬
39 wnd.ShowWindow(nCmdShow);
46 vcassert(_heapchk() == -2,TEXT("
\83q
\81[
\83v
\83G
\83\89\81[
\82Å
\82·"));
48 _Module.RemoveMessageLoop();
51 MessageBox(NULL,e.what(),TEXT("
\83A
\83v
\83\8a\83P
\81[
\83V
\83\87\83\93\83G
\83\89\81["),MB_OK);
52 }catch(std::exception e){
54 MessageBoxA(NULL,e.what(),"
\83A
\83v
\83\8a\83P
\81[
\83V
\83\87\83\93\83G
\83\89\81[",MB_OK);
63 static BOOL InitializeNlite(){
69 appInfo = &CApplicationInfo::getInstance();
72 }catch (AppInitException e){