Using a C++ Class

  • Thread starter Thread starter Peter Aitken
  • Start date Start date
P

Peter Aitken

Can anyone point me to a tutorial or other information on using a Visual C++
class in a VB.Net project? Thanks
 
You can't use a Visual C++ class in a VB.NEt project. VB.NET projects hold
VB.NET code, not C#, C+=, Python, Perl, Cobol or anything else. BUT... you
are working in .NET ;)

This means that if you need to access that C++ class, put it into a Visual
C++.NET project and build a standard .net assembly. Then you can reference
the assembly from your VB.NET project and pick up the class that way.

Another alternative would be to use the C++ class to generate a COM/COM+
server and talk to that, but we try not to talk about COM too much these
days. ;)
 

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