By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,530 Members | 880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,530 IT Pros & Developers. It's quick & easy.

VB front end, with back end using another language

P: 175
I've got a program in C++, but I want to create a front end user interface for it using Visual Basic. I'm not looking for alternatives, I'm just curious, how would I do that?

Just as a basic example, lets say I have a Visual Basic form, and there are two text boxes that take strings from the user. Then the user clicks a button.

...then, I want to send these two arguments to my C++ code. After the C++ code does some stuff, I want it to return ...a string for example... back to another text box in the Visual Basic GUI.

I feel like i should know how to do this, but I have no clue. How is this done? I'd appreciate any information or links to sites with information on how to do this.
Jan 23 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 5K+
P: 8,127
It would be better to compile a DLL using C++ and call that from VB code.
Jan 23 '08 #2

P: 175
thank you, that's exactly what I was looking for ... I don't know why I wasn't thinking of creating a DLL out of the C++ code ... anyway, that's what I need to do, thank you.
Jan 23 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.