transfering Class between languages

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, say i ahve a class i wrote in C++, how would i use it in my VB.net
application? going along with it, say i ahve a VB.net class, how would i use
it in my C++ project?
thanks
 
iwdu15 said:
hi, say i ahve a class i wrote in C++, how would i use it in my VB.net
application?

Make it a COM class and set a reference to the DLL to use the class in your
VB.NET project. Alternatively you can write a managed wrapper around the
class using Managed Extensions for C++ or C++/CLI.
going along with it, say i ahve a VB.net class, how would i use
it in my C++ project?

Either make the class a 'ComClass' (+ 'ComVisible' for its members) or use
Managed Extensions for C++ to use the VB.NET class in C++.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top