Managed wrapper and inheritance
-
Hello, I was wondering if the following thing can be managed by using c++. I have two unmanaged classes. Lets call them A and B. Class B inheritance from A. A has a method for example ShowMeSomeText() and method B has another method ShowMeSomeMore() If i want to create a managed wrapper, i will create two new managed classes A and B (ManagedA and ManagedB). ManagedB will have an inheritance of ManagedA. Inside both classes are declarations of the unmanaged object A and B (so ManagedA has a private declaration of unmanaged object A and the same for ManagedB but with object B) Now i want create in for example a C# program a new instance of object ManagedB and want to call the method ShowMeSomeText() (which is from the class A). This will not work correctly because ManagedB will call the method from ManagedA but this will use the unmanaged object A and this will go wrong. How can this be solved? Hope somebody can help me? Thanx