hi is there a converterthat will convert a visual basic program into a c program ?
Printable View
hi is there a converterthat will convert a visual basic program into a c program ?
If you had bothered to search the forum you'd know the answer already.
There is no complete one, but someone here is working on one, don't know how far or good.
Usually it isn't worth it, translating VB code 1:1 to C code will end up in a bad program.
Oh, and you can't convert VB forms and events, I hope you are aware of that.
I don't see how that would be impossible.Quote:
Oh, and you can't convert VB forms and events, I hope you are aware of that.
Not impossible, but quite tricky. The converter would need to create dialog templates from the VB form code, write a message loop, a WndProc, ActiveX container code...
It is possible (has to be), but I can't imagine anyone would bother to write such a program.
One easy solution: learn VC++ and add 1 skill to your bag of tricks.
But seriously, I don't see any point in converting a working VB program to another language. Just leave it as it is. Go on to do your next project.
If you need speed or whatever, just completely re-write the program in c++. (btw, vc++ is a compiler ;)) There are way more than one way to get an outcome.
similar question:
is there a program that can convert a vb .frm file into the code required to create the window (and child windows, not including ActiveX controls) using RegisterClass and CreateWindow in c++? i'm not lookng to convert the events or anything; i just want to draw the form in vb and code everything in c++.
Not that I know of, but there might be one. After all this can't be too hard to write.
You can always use VC++'s Dialogue editor...
Yes, there is one.
http://www.metamorphic.com/html/vb_to_c___0.html
they sure want a lot of mony for it...
that thing dont even work dont bother buying it lol