1 //---------------------------------------------------------------------------
6 #include "ChatClientWnd.h"
7 USEFORM("ChatClientWnd.cpp", ChatClientWindow
);
8 //---------------------------------------------------------------------------
9 #pragma package(smart_init)
15 #pragma startup ace_init
22 //---------------------------------------------------------------------------
23 WINAPI
WinMain(HINSTANCE
, HINSTANCE
, LPSTR
, int)
27 Application
->Initialize ();
28 Application
->Title
= "CORBA Chat Client";
29 Application
->CreateForm(__classid(TChatClientWindow
), &ChatClientWindow
);
32 catch (Exception
&exception
)
34 Application
->ShowException (&exception
);
36 catch (const CORBA::Exception
&exception
)
38 ShowMessage (String ("CORBA exception: ") + exception
._rep_id ());
42 ShowMessage ("Unknown exception");
47 //---------------------------------------------------------------------------