Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any VB6 to C# migration tool? [closed]

Does anyone know a way to convert from VB6 code to C#?

Is there a tool that can do this for me?

Is there any migration process that I can follow to do this?

like image 849
basl Avatar asked Oct 07 '08 17:10

basl


People also ask

Can you convert VB to C?

The VB to C# code converter from the SharpDevelop team is now a standalone extension to Visual Studio. Once installed, you can convert an entire VB.NET project to C# by opening the solution, right clicking the solution node in the Solution Explorer and selecting Convert to C#.

Is C# faster than VB6?

A current VB program which has the same performance as C# processes normally at least 10 times faster then a VB6 program.

Is VB6 still used today?

Visual Studio 6 was released in June 1998 and is the last version to run on the Windows 9x platform. It still runs on Windows 10 because of backward compatibility. Some Visual Basic 6 code still exists within many enterprise companies, and the language remains in use even though it was discontinued in 2005.

What replaced VB6?

Xojo is more powerful than VB6 while at the same time more approachable than VB.NET. With Xojo, a single project can create desktop apps that work on Windows, macOS, Linux and Raspberry Pi. Unlike VB and Visual Studio, Xojo allows you to develop on your platform of choice- Windows, Mac or Linux.


2 Answers

VisualStudio offers (or at least offered) a wizard to do a conversion from VB6 to VB.NET (which could then be converted to C# with a bit of work, possibly helped by #develop's VB.NET <-> C# converter), but when last I used it, for anything non-trivial there was a lot of manual work needing to be done so I suspect you're probably better rewriting or porting by hand if this is a large and/or important application.

like image 199
theraccoonbear Avatar answered Sep 22 '22 13:09

theraccoonbear


It might come across as a little bit cheeky but your brain might be the best tool to use. Could be worth the re-write.

Maybe you don't need to porting it. Could the VB6 be turned into a COM component? Port to COM, call from C#, home in time for Judge Judy.

like image 42
Derek Smyth Avatar answered Sep 19 '22 13:09

Derek Smyth