> >Danny is correct.  C++ objects have global overhead and therefore can't
be
> >used in apps when they are sub-launced w/ launch codes.
>
> Mostly true, but if you have a straight-C++ object, no static members
> (I belive that's the only restriction) you CAN have use it in a
> sub-launch call situation (subject to the multi-segment rules, of
> course).

Static members are a problem, but the more devious problem is that of C++
virtual functions.  Since CodeWarrior stores a pointer to the virtual
function table as a static member (ie, global space), you cannot have
classes that use virtual functions when sublaunched without globals.

---- --- -- -
Matthew D Moss
[EMAIL PROTECTED]



Reply via email to