Re: Corba_string object



some one wrote:

>Thanks for your reply.
>
>So for a CORBA_string object I should use first the
>allocate function and then the dup function?
>
>struct employee myemp;
>myemp.name = CORBA_string_alloc(7);
>myemp.name = CORBA_string_dup("someone");
>
No extra memory allocation, only call:

myemp.name = CORBA_string_dup("someone");

Here ought to be some sample code working with strings:

http://www.gnome.org/projects/ORBit2/orbit-docs/orbit/book1.html

Best regards, Frank





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