English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-11-26 04:03:50 · 5 answers · asked by Preeth 1 in Computers & Internet Programming & Design

5 answers

Well, lots of companies i've worked for have asked me this question. There are no easy ways to convert VB6 into C++, and here's why:

VB6's syntax is somewhat different from C++, but it also comes with a large set of built-in functions that C++ does not have. C++ also has the ability to natively access OS functions that VB6 needs a bit of extra text to reach.

Both can create strong applications, and both use event-driven programming. however, there are VB6 programs that can be written without much knowledge of robust programming techniques, leading to come awful designs.

You probably don't want to simply automate the conversion of a VB6 program into C++ - you want to "re-engineer" it. This is complicated for a novice programmer. You should ask "why C++?" first of all.

perhaps choose VB.NET as a target. There are automated tools to convert VB6 into VB.NET. From there you can tinker with the code to remove some of the conversion residue (there will be some extra attached libraries for backward compatibility).

2006-11-26 05:03:56 · answer #1 · answered by WickedSmaht 3 · 1 0

This is (was?) not difficult for numeric calculations where some of the syntax can be identical. I converted the Whetstone Benchmark from Fortran to BASIC, then to VB, Excel VB and C. These can be found at my website:

http://freespace.virgin.net/roy.longbottom
http://freespace.virgin.net/roy.longbottom/whets.c
http://freespace.virgin.net/roy.longbottom/whets.bas
http://freespace.virgin.net/roy.longbottom/whets.for
http://freespace.virgin.net/roy.longbottom/whetsvb.txt
http://freespace.virgin.net/roy.longbottom/whetsvb.xls

All the main calculations are the same.

I forgot Java

http://freespace.virgin.net/roy.longbottom/whetjava.zip

2006-11-26 13:27:23 · answer #2 · answered by ROY L 6 · 1 0

Well there is a tool that can convert vb.net into C#.

http://www.aisto.com/roeder/dotnet/

Compile your program, and then reverse engineer with this tool, .NET Reflector.

Since # syntax is closer to C++ than vb's, at least it gets you part of the way there.

(I've heard that this Reflector add-on can decompile to C++, but I haven't tried it:

http://www.mybadhairday.com/cppclireflector.html )

2006-11-26 13:51:21 · answer #3 · answered by evolver 6 · 1 0

Will be disastrous.

2006-11-26 14:10:21 · answer #4 · answered by liketoaskq 5 · 0 1

they are different compilers.Nothing can be done.

2006-11-26 12:29:17 · answer #5 · answered by Ashwin M 3 · 0 1

fedest.com, questions and answers