managed c++ class that inherits from unmanaged c++
-
is it possible to have a managed c++ class that inherits from an unmanaged c++ class? if so, how would i do that?
Wrong forum. Try the Managed C++ forum. This is for C#.
Microsoft MVP, Visual C# My Articles
-
Wrong forum. Try the Managed C++ forum. This is for C#.
Microsoft MVP, Visual C# My Articles
-
sorry. i meant c# class that inherits from unmanaged c++. is there a way to accomplish this?
No. You would have to encapsulate this unmanaged C++ class in a managed class. The easiest way would be to create a mixed mode Managed C++ assembly that encapsulates this in a managed class, then extend that from C#.
Microsoft MVP, Visual C# My Articles
-
No. You would have to encapsulate this unmanaged C++ class in a managed class. The easiest way would be to create a mixed mode Managed C++ assembly that encapsulates this in a managed class, then extend that from C#.
Microsoft MVP, Visual C# My Articles
-
Heath Stewart wrote: easiest way would be to create a mixed mode Managed C++ assembly that encapsulates this in a managed class ok. can you point me to some info about that? thanks.
Um, try the .NET Framework SDK. You did install that with Visual Studio .NET or with the .NET Framework SDK download, did you not? Specifically, see Managed Extensions for C++ Programming[^] in the VS.NET product documentation. Most importantly, remember that the managed code has the same access to .NET assemblies (including the base class library) that every other .NET language. That's the whole point of language interoperability.
Microsoft MVP, Visual C# My Articles