string handling problem
- From: Peter Van Osta <pvosta unionbio-eu com>
- To: orbit-list gnome org
- Subject: string handling problem
- Date: Mon, 14 Apr 2003 14:44:45 +0200
Hi,
I have been reading manuals and the list archive, but I just can't get
the string handling right. I can't get the server to return a string as
part of the function arguments ( see below) ? I don't get the string
back, but always another string which was "filled' before. how to let a
server fill/copy/manipulate a string and have it back ?
This is only a small test, because the next thing is to be able to send
and receive sequences for images.
static CORBA_short
impl_MyServer_MyStringSendReceive(impl_POA_MyServer * servant,
CORBA_char * mystr,
CORBA_char ** message,
CORBA_Environment * ev)
{
CORBA_short retval = ( CORBA_short )TRUE;
fprintf( stdout,"Received request...\n" );
g_message( "[server] %s", mystr );
*message = CORBA_string_alloc( 63);
*message = CORBA_string_dup( mystr );
return retval;
}
Best regards,
Peter Van Osta
Union Biometrica N.V./S.A.
European Scientific Operations (ESO)
Cipalstraat 3
B-2440 Geel
Belgium
Tel.: +32 (0)14 570 619
Fax.: +32 (0)14 570 621
http://www.unionbio.com/
http://ourworld.compuserve.com/homepages/pvosta/cvwww.htm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]