[omniORB] omniORB.CORBA.BAD_PARAM
Paul Brannan
pbrannan@atdesk.com
Wed, 14 Nov 2001 12:49:55 -0500 (EST)
On Wed, 14 Nov 2001, Duncan Grisby wrote:
> Perhaps you should define your struct as
>
> struct Bar {
> string str;
> };
>
> Cheers,
>
> Duncan.
Unfortunately, that's not an option for me. In C++, I can do:
Test::Bar b;
std::strncpy(b.str, "testing", sizeof(b.str));
b.str[sizeof(b.str)-1] = '\0';
In python, then, it seems I can do:
b = Test.Bar('testing\0 ')
Short of writing a helper function, is there any other way to do this?
Thanks again,
Paul