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?

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).


Need Your Help

Split a collection into parts based on condition with LINQ?

c# .net linq grouping order

I want to achieve something similar to this. But I don't know in what manner I can use that solution.

deleting multiple files (versions) with Fog and Carrierwave - Rackspace

ruby-on-rails carrierwave rackspace-cloud fog rackspace

I am building an application where i have a file with original, medium and thumbnail size images. I am using carrierwave to accomplish this, and I need to remove all versions of the file from Racks...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.