[omniORB] IDL version problem.

Armin Gerritsen a.a.gerritsen@phys.uu.nl
Mon, 10 Apr 2000 15:45:56 +0200


Hello,

We are working on a project that involves a lot of various CORBA
applications. Now during this project a few changes were made in the IDL.
These changes make older versions of our applications incompatible with
newer versions.

Now because we didn't want to rewrite thos applications (which is also not
possible since some of the code belongs to other companies which worked or
used to work with us.). So we wanted to write a sort of proxy:

myresturn mynewclass::mymeber( mynewparam param)
{
 //translate
 ....

 myoldreturn myreturn = myoldobject.mymember( myoldparam )

 //translate back

 return ...
}

This is not reealy a problem, if the objects in the old and new IDL have the
same name (of course). So the compiler will always complain about incorrect
params with iether the new or old function.

Now I could rename the old IDL and use a different name, but I'm not sure
this would cause an error when using _narrow().

Isn't there a better way?

Best regards,

Armin Gerritsen