[omniORB] Problem passing an array of structs
Brian Neal
bgneal at gmail.com
Tue May 22 08:46:52 BST 2007
> >The C++ mapping specifies that operator[] should be defined just for
> >CORBA::ULong (see page 1-49 of the C++ 1.1 mapping).
>
> Yes, and I now see that all the examples in my CORBA books use
> CORBA::ULONG for the index, but none of them says why, or that you
> have to. Since many of us are used to using an int or a long for
> array indices in C++, it is a natural trap to fall into. Few of us
> wade through the official CORBA binding to C++ - as you say in the
> omniORB docs, it's a tough read.
I have been (unfortunately.. :-) ) doing CORBA for a few years now,
and I can sympathize as I have made mistakes like this. However, in my
experience, if you are going to be doing CORBA in C++, you really do
need 2 things: The Henning and Vinoski "Advanced CORBA Programming
with C++" book, and a copy of the latest C++ mapping from the OMG. The
mapping document isn't that hard to read, and in fact, I find it under
specified. I wish they would say more. I do refer to it often though.
(Getting a new, better, more modern C++ mapping probably isn't going
to happen sadly)
More information about the omniORB-list
mailing list