Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / examples / Borland / ReceiverImpl.cpp
blob08c4d382ebaffe77e391ff7c2e23d1dd2fac610d
1 //---------------------------------------------------------------------------
2 #include "pch.h"
3 #pragma hdrstop
4 #include "ChatClientWnd.h"
5 #include "ReceiverImpl.h"
6 //---------------------------------------------------------------------------
7 TReceiverImplementation::TReceiverImplementation ()
8 : orb_ (0)
11 //---------------------------------------------------------------------------
12 TReceiverImplementation::~TReceiverImplementation ()
15 //---------------------------------------------------------------------------
16 void TReceiverImplementation::message (const char* msg)
18 ::PostMessage (ChatClientWindow->Handle,
19 WM_MESSAGE_RECEIVED,
20 (WPARAM) new String (msg),
21 (LPARAM) 0);
23 //---------------------------------------------------------------------------
24 void TReceiverImplementation::shutdown ()
26 // Instruct the ORB to shutdown.
27 orb_->shutdown (false);
29 //---------------------------------------------------------------------------
30 void TReceiverImplementation::orb (CORBA::ORB_ptr o)
32 orb_ = CORBA::ORB::_duplicate (o);
34 //---------------------------------------------------------------------------