Question C++ class in VB.net?

denkleine

Member
Joined
Jun 9, 2008
Messages
5
Programming Experience
1-3
My question is verry simpel and maybe stupid.

But I'm wondering if its possible, or if there is some way to use a C++ class in VB.net (2003, 2005 or 2008 doesn't matter).

If its possible, could you direct me to somewhere I can find out how.
 
It really depends on what you are trying to do. Do you need all or some of the methods contained on the class? Or are you trying to create an instance of the C++ class from within VB.Net?

If it is the former then you can export the symbols for the methods you require. VB.Net doesn't support static linking but you can P/Invoke to use the methods.

If it is the latter then I would suggest creating a Managed C++ wrapper around your native C++ class and then call that from VB.Net.
 
Back
Top