string problem solved



Hi,

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.

Both compile fine when put in a IDL, so that's where the confusion came
from. An array of characters is vaild in CORBA, but it isn't dealt with
as a string in contrast to "good old" C. whne in C "strcpy" gives a
valid result when coying one string into another if the receiving string
was declared as "char aaa[123]", but this doesn't hold when the
resulting "string/character array" is transfered by CORBA.

Best regards,

Peter Van Osta



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]