Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 and C/C++

Status
Not open for further replies.

THOMASNG

Technical User
May 3, 2002
254
US
I have had the luxory of writing my application in
100% VB6. In the future, I may have to write applications
that provide a pretty GUI to programs written by others in
C/C++.
Are there relatively simple ways to provide hooks into
C/C++ applications?
 
You can access C++ that has been compiled as a DLL with exposed methods from VB.

It's not all that hard.

But personally- if all you want to do is add a GUI to existing command line code- I would think you'd be better off sticking w/C++. I only integrate the 2 when I've got something already in VB that I must use but I want the added performance of C++.
 
If you do decide to call the C++ code, be sure that the functions/methods are exported via the __declspec(dllexport) modifier. Your C++ guy will know about this.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top