From: Amol777 <amo...@pr...> - 2012-05-25 10:27:35
|
Thanks Alex ..i will try definitely try this. Regards, Amol AlBor wrote: > > I don't know whether my approach suites you but when facing mu;tiple > inheritance problem I did the following: > 1. Created wrappers for both B and C. > 2. Inherited A from one class (with a larger amount of methods) for > instance B. > 3. Added field of type C (objC for instance) in wrapper A. > 4. Instantiated objC field with the same pointer as A object and memory > own flag set to false. > 5. Changed all method modifiers inherited from C from override to virtual. > 6. Set all bodies of inherited C methods to objC->methodC1(); > 7. In case I needed to override C methods on C# side, I just created a > child childC class, overrided the methods and instantiated objC A class > field with childC ctor. > > Hope there will be something helpful. > > Regards, > Alex. > > Amol777 wrote: >> >> I have class A which is derived from B and C. I want create wrapper in c >> sharp for class A.And i want to overwrite the methods of both the classes >> B and C in A. >> >> So is there any modification required to be done in interface file while >> creating wrapper? >> >> Because when i tried this i got the error >> >> Warning 833: Warning forA: Base B ignored. Multiple inheritance is not >> supported in Java. >> >> Can you help me out to solve this problem? >> >> >> > > -- View this message in context: http://old.nabble.com/How-to-fixed-issue-of-multiple-inheritance-tp33843864p33907097.html Sent from the swig-user mailing list archive at Nabble.com. |