Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / Borland / ReceiverImpl.cpp
blob0814ed2eda3c6ed6f70455731445e07d564b92fc
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 (0);
29 //---------------------------------------------------------------------------
30 void TReceiverImplementation::orb (CORBA::ORB_ptr o)
32 orb_ = CORBA::ORB::_duplicate (o);
34 //---------------------------------------------------------------------------