how to convert code written in C++ to Visual Basic

I am doing my thesis with a set of code written in C++ but I want to make the program running in user friendly interface , so my supervisor ask me to do it in GUI model , means that in form format with buttons available but i don't know how to link code written in C++ to Visual Basic, is it accessbile ? Hope that esperts may answer my questions as fast as possible
chunyanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vettrangerCommented:
You can't use C++ source code in VB as source code, if that's what you're after.

If the code is amenable to being compiled into DLLs, you can do that and then call the DLLs from VB.

I haven't looked for any C++ to VB code translators (normally people want to do it the other way around!) So I don't know if any are available.

Other than the above you just have to know both languages and rewrite it.

Of course, you CAN develop an GUI in C++, its not too RAD but its done all the time.
0
scrapdogCommented:
Try using Borland C++ Builder...it is a RAD tool, very good for making GUIs.
0
razvanlCommented:
A long time ago I had a small C++ project and I managed to convert it to VB without having much knowledge of the actual C++ code other than mainly what it meant.

I would suppose you don't know C++ since then I guess it wouldn't be much of an issue.  If you have the actual C++ program you can try to basicly try to recreate what it does in visual basic with a new project.  As long as we're not talking something huge or extremely complex VB can probably do it.  And if you don't know C++ it will probably be time efficient too.  I hear it takes a bit to make non console program in C++ - especially when you don't know C++ to begin with.

I can definitely say there isn't any way to take c code and just wire it into a VB program.  C++ and VB even have a different style of organization - they don't mix at all.. as most programing languages don't.  If all else fails just hire somebody to do it for you :)

Sincerely,
RazvanL.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

SLECommented:
Hehehe, ... what about VC++?
0
xavier2Commented:
Microsoft Visual C++ and MFC(Microsoft Fundation Classes)is probably the best solution for you.
Project-creation wizards make it simple for you to build a graphical user interface and MFC is very frienldy with begining programmers.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chunyanAuthor Commented:
I don't even ever touch on Visual C++ so may I know that whether MFC is a subtopics of Visual C++ or other programming language
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.