Question Locked

how do i run c++ program inside vb?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is there a way to insert C++ code inside a VB program ? Or execute a C++ program
inside a VB program ?

Thanks in advance..

3 replies

by tony hopkinson

VB6, then look up ShellExecute

The other way is to do the C++ code as a com object and just use it.

Of course if you are talking .net, the problem is moot (ish)

by dawgit

The size and relevance of that particular piece of code, but if it were small, and not a whole run program, I would suggest You either translate it, or re-write it in C#. I think you'll have less problems later on down the road, especially when debugging.

Otherwise the suggestion of droping it in as a COM Object is a good idea. -d

This discussion is closed to new replies.