summaryrefslogtreecommitdiff
path: root/TAO/examples/Borland/ReceiverImpl.cpp
blob: 77d2db41f712290d9e9d308e82ded6baad46db90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// $Id$
//---------------------------------------------------------------------------
#include "pch.h"
#pragma hdrstop

#include "ReceiverImpl.h"
#include "ChatClientWnd.h"
//---------------------------------------------------------------------------
TReceiverImplementation::TReceiverImplementation ()
  : orb_ (0)
{
}
//---------------------------------------------------------------------------
TReceiverImplementation::~TReceiverImplementation ()
{
}
//---------------------------------------------------------------------------
void TReceiverImplementation::message (const char* msg) throw (CORBA::SystemException)
{
  ::PostMessage (ChatClientWindow->Handle,
                 WM_MESSAGE_RECEIVED,
                 (WPARAM) new String (msg),
                 (LPARAM) 0);
}
//---------------------------------------------------------------------------
void TReceiverImplementation::shutdown () throw (CORBA::SystemException)
{
  // Instruct the ORB to shutdown.
  orb_->shutdown ();
}
//---------------------------------------------------------------------------
void TReceiverImplementation::orb (CORBA::ORB_ptr o)
{
  orb_ = CORBA::ORB::_duplicate (o);
}
//---------------------------------------------------------------------------