Intro to Managed C++, Part 2: Mixing Managed and Unmanaged Code
Subject:   Inheriting from unmanaged code
Date:   2005-08-04 01:53:35
From:   Chanveda
Hello Sam,

Thanks for the good article yet again. Please let us know when can we expect your third article.

Also , meanwhile I have a challenging scenario for all those hungry techies. I need to extend an existing UNManaged type (A, extended as B), so that It operates on the Managed type(C). The extended Type (B) will again be used by another UNManaged class(D).

The issue here is the type (C) should always be UNManaged. I can always extend A in C++ provide wraper and use but Given MC++ and .NET world. Why should I use plain C++?

Can my MC++ class implement Unmanaged Interface ?

Can the unmanaged class use the MC++ class (that implements an unmanaged interface) as a normal unmanaged class ?

IF NOT what is the solution to this problem ??? Think...