473,395 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

VB6 => C#.NET

Hi,

Last time I asked about it over a year ago.

Did anybody write or maybe somebody knows if the program exists to convert
the VB6 source codes (mainly classes, not forms) to C# classes? Any
information about any program including commercial would be appreciated.

We're having about 500'000 lines of VB6 code that should be converted to C#
ASAP. That's a highest priority for us now.

Thanks,
Dmitri

Nov 16 '05 #1
5 1239
There are a couple of converters out there that are somewhat ok. None of
them are perfect though. One of them is BabbelFisken. Although, it hasn't
been updated in a LONG time. The url is
http://w1.311.telia.com/~u31115556/z...en/Zexedir.zip

Also, there is InstantCSharp, but you will have to first upgrade your VB6
code to VB.NET, make sure it is correct and compiles, then pass it to
InstantCSharp.

There is also an online VB.NET to C# converter at
http://www.developerfusion.com/utili...btocsharp.aspx
I haven't tried that one at all.

And lastly, there is #develop (http://www.icsharpcode.net), which is an
open-source alternative to Visual Studio.NET.

All in all, there is no 100% converter available. There probably never will
be.

HTH,

Kyril

"Just D" <no@spam.please> wrote in message
news:3qiJc.559$Zr.515@okepread01...
Hi,

Last time I asked about it over a year ago.

Did anybody write or maybe somebody knows if the program exists to convert
the VB6 source codes (mainly classes, not forms) to C# classes? Any
information about any program including commercial would be appreciated.

We're having about 500'000 lines of VB6 code that should be converted to
C# ASAP. That's a highest priority for us now.

Thanks,
Dmitri

Nov 16 '05 #2
As Kyril said, Instant C# converts VB.NET code to C# (even though a
fairly high percentage of VB6 code will be converted successfully in
the snippet converter portion of our tool).

We recommend going from VB6 to VB.NET in a 2-step process: convert
first to VB.NET using Microsoft's VB Upgrade Wizard and then use a
converter such as Instant C#. The VB Upgrade Wizard does a good job
of getting your code to work in the .NET environment. Once this is
done, the conversion to C# is far less risky since you've isolated
any possible discrepancies to either the VB.NET upgrade or the C#
conversion.

In our consulting work, we actually divide the process into 4 steps:

1. Prepare the VB6 app for the best possible upgrade to VB.NET (e.g.,
transform 1-based arrays to 0-based arrays)
2. Convert to VB.NET and run comprehensive tests
3. Prepare the VB.NET app for the best possible conversion to C#
(e.g., setting Option Strict)
4. Convert to C# and run comprehensive tests

Nov 16 '05 #3
I'll throw out a provacative comment here for kicking around. If you're just
converting syntax, why bother? .NET is a new programming paradigm. By just
converting syntax you're missing all the language enhancements and reasons
to use .NET. To get the benefits of .NET most VB6 programs will need to be
re-designed.

Like I said, just throwing it out there. If management is mandating this
conversion then you have no choice. I agree with the other posts, there
won't be any single conversion tool that can do it all. You'll have to code
the rough edges.

good luck,
kevin aubuchon

"Just D" <no@spam.please> wrote in message
news:3qiJc.559$Zr.515@okepread01...
Hi,

Last time I asked about it over a year ago.

Did anybody write or maybe somebody knows if the program exists to convert
the VB6 source codes (mainly classes, not forms) to C# classes? Any
information about any program including commercial would be appreciated.

We're having about 500'000 lines of VB6 code that should be converted to C# ASAP. That's a highest priority for us now.

Thanks,
Dmitri

Nov 16 '05 #4
I mean "We recommend going from VB6 to C# in a 2-step process", of
course.

Nov 16 '05 #5
> Kevin Aubuchonwrote:
I'll throw out a provacative comment here for kicking around. If
you're just
converting syntax, why bother? .NET is a new programming paradigm. By just converting syntax you're missing all the language enhancements and reasons to use .NET. To get the benefits of .NET most VB6 programs will need to be re-designed.

Like I said, just throwing it out there. If management is mandating this conversion then you have no choice. I agree with the other posts, there won't be any single conversion tool that can do it all. You'll have to code the rough edges.

good luck,
kevin aubuchon


Yes, to get all the benefit, a lot of redesign may be required.
However, I think there's a lot to be said for doing things in steps.
Convert and ensure it's functioning correctly, then you have a base to
start refactoring from. Trying to do it all at once (redesign and
rewriting from scratch) is much more expensive if you're VB6 code
base is relatively solid. Don't throw all that blood and sweat away
- convert it and refactor/redesign it in small steps.

About your second point: there is no conversion tool that can truly do
100%, but you may be surprised at how much can be done.

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Francesco Moi | last post by:
Hello. I'm trying to build a RSS feed for my website. It starts: ----------------//--------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE rss PUBLIC "-//Netscape...
1
by: Christian Schmidbauer | last post by:
Hello! I prepare my XML document like this way: ------------------------------------------------------- PrintWriter writer; Document domDocument; Element domElement; // Root tag
2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
0
by: Arne Schirmacher | last post by:
I want to display a MySQL database field that can contain HTML markup. If I use <esql:get-string> then I get all of the database field, but all tags are escaped which is not what I want. If I use...
34
by: Mark Moore | last post by:
It looks like there's a pretty serious CSS bug in IE6 (v6.0.2800.1106). The HTML below is validated STRICT HTML 4.01 and renders as I would expect in Opera, FrontPage, and Netscape. For some...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
2
by: bissatch | last post by:
Hi, I am currently writing a simple PHP program that uses an XML file to output rows for a 'Whats New' page. Once written, I will only require updating the XML file and any pages that use the...
0
by: vdex42 | last post by:
Apologies if this has been asked before, but I haven't been able to find the answer to this yet: My problem is that .NET will not allow me to insert escaped '>' characters (i.e. &gt;) within the...
5
by: John Nagle | last post by:
This, which is from a real web site, went into BeautifulSoup: <param name="movie" value="/images/offersBanners/sw04.swf?binfot=We offer fantastic rates for selected weeks or days!!&blinkt=Click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.