[omniORB] out parameter does not change
Sai-Lai Lo
S.Lo@uk.research.att.com
05 Oct 1999 10:05:40 +0100
>>>>> B=FCnyamin" "Alt=FDnta=FE writes:
> Hello,
> I have a problem. I send IDL and object implementation
> as an attachment. Briefly, my problem is as follows:
> out parameter is coming to client side without
> changing. But this happens if client and server
> programs run in different machines. In the same
> machine, this does not happen.
> platform [NT4.0 ServicePack 5]
Your code is wrong.
> // object implementation
> CORBA::Long Vknma_i::exec(const char* mukType,const char* opCode, con=
st char* inPar, char*& outPar) {
.... Cut...
> CORBA::String_var dd =3D (const char*) "4444444444";
> try {
> dispatch (tmpMuktype, tmpOpCode, parVec);
> }
> catch (VknmaErr& ex) {
> throw;
> }
=09
outPar =3D dd._retn();
^^^^^^^^^^^^^^^^^^^^
> return 1;
> }
--=20
Sai-Lai Lo S.Lo@uk.research.att.com
AT&T Laboratories Cambridge WWW: http://www.uk.research.att.c=
om=20
24a Trumpington Street Tel: +44 1223 343000
Cambridge CB2 1QA Fax: +44 1223 313542
ENGLAND