cross language question
-
Ok here is the setup. Myself and a few of my friends are new to .net but we all know c++ quite well and one person knows vb. I have created a class in c++ that I would like to inherit into a vb program so that vb can create and call functions in the class. I am under the impression that this can be done with cross language inheritance, but I can't find any information about it and I have no idea how to do it. Any information would be appreciated. Thanks, krauftig
-
Ok here is the setup. Myself and a few of my friends are new to .net but we all know c++ quite well and one person knows vb. I have created a class in c++ that I would like to inherit into a vb program so that vb can create and call functions in the class. I am under the impression that this can be done with cross language inheritance, but I can't find any information about it and I have no idea how to do it. Any information would be appreciated. Thanks, krauftig
You can do that easily if you use the C++ managed extensions provided by .NET. Visit the resources here at CodeProject[^] for an introduction to Managed C++. For the most part, after you have a manged assembly it is only a matter of making a reference to it and deriving from it, regardless of the language you want to use. steve