Re: string problem solved
- From: Michael Meeks <michael ximian com>
- To: pvosta unionbio-eu com
- Cc: ORBit list <orbit-list gnome org>
- Subject: Re: string problem solved
- Date: 23 Jun 2003 09:10:34 +0100
Hi Peter,
On Fri, 2003-06-20 at 14:36, Peter Van Osta wrote:
> It seems that I have a lot of trouble to get rid of "C" habbits.
> Declaring strings for CORBA isn't done wiht "char aaa[123]", but with
> "string aaa". Afterwards allocating and "string"duping" the strings does
> the trick.
Right; so what CORBA will do for such a fixed length, fixed size array
is:
typedef char[128] foo;
Then it will use pass by value semantics everywhere for foo - which is
unlikely to be what you want (at all ;-). Using a string is far better.
HTH,
Michael.
--
michael@ximian.com <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]