Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to mix a VB program with a C++ Program

I have a C++ program that I wrote, and I would like to give it a user interface. Is there any way I can run a C++ program and put the information from the program onto the UI of a VB Application?

like image 483
Monkeyanator Avatar asked Feb 22 '23 06:02

Monkeyanator


1 Answers

Sure.

Use

  • COM
  • COM Interop
  • P/Invoke (a.k.a. Declare in VB)
  • Oh, I forgot: C++/CLR if you intend to use Windows only

I suggest you write the whole application in a managed language (e.g. VB.Net) and only invoke C++ library functions for the performance critical work (or for legacy code that you already have, of course).

like image 113
sehe Avatar answered Mar 04 '23 12:03

sehe