Forum Home
Press F1
 
Thread ID: 125304 2012-06-19 11:38:00 Converting VB6 scripts to modern times.. adslgeek (14687) Press F1
Post ID Timestamp Content User
1282734 2012-06-19 11:38:00 I have some old code in VB6 and was thinking of bringing it into the modern age..

Is there anyway to compile the old script so it works on Win 7 or 64bit systems?

Or
What is the simplest method to convert them?
adslgeek (14687)
1282735 2012-06-19 12:20:00 Don't re-invent the wheel just bite the bullet and use C or C++. mikebartnz (21)
1282736 2012-06-21 10:12:00 Do you mean just rewrite it all? I was sort of resigned to that :-) adslgeek (14687)
1282737 2012-06-21 10:47:00 It would be a lot easier to port VB6 to VB.net or C# than C or C++ I think. Fifthdawn (9467)
1282738 2012-06-21 12:35:00 It would be a lot easier to port VB6 to VB.net or C# than C or C++ I think.
It is basically going to be a rewrite anyway so it might as well be done in a far better language that can also target more than one OS. A very good learning curve too.
mikebartnz (21)
1282739 2012-06-23 21:13:00 Thanks mate, I have been stuck on Perl, PHP and starting python so maybe time for a new one! :) adslgeek (14687)
1282740 2012-06-23 21:23:00 Vb.net is quite similar to vb6. You could almost theoretically copy and paste the code and with a few adjustments it should work. Also vb.net is alot more feature full but as other people have said, C#, C and C++ are more real world languages that are universal. stratex5 (16685)
1282741 2012-06-23 21:32:00 It might be a good lazy idea for me to port to VB.net then and then learn another language another day :-) adslgeek (14687)
1282742 2012-06-23 21:38:00 Just note that you might have to look in to a few stuff with vb.net as some commands can be different. What sort of apps do you me? stratex5 (16685)
1282743 2012-06-23 22:31:00 I'm pretty sure that Visual Studio has a VB6 import function which should help you through the process and highlight parts of the code that needs to be adjusted to meet the current standard. Webbnzl (8810)
1 2