PC Review


Reply
Thread Tools Rate Thread

How to convert VB to C#?

 
 
Tom
Guest
Posts: n/a
 
      6th Oct 2003
Hi,

I built an application with VB many years ago and I want
to use C# and dot net framework now.

How can I convert the VB6 code to C#? Do I need to firstly
convert VB6 code to VB.net and then convert VB.net to
C#.net?

If so, could anyone recommend those 2 translators?

Thanks
 
Reply With Quote
 
 
 
 
Dmitriy Lapshin [C# / .NET MVP]
Guest
Posts: n/a
 
      6th Oct 2003
Hi Tom,

You can migrate from VB6 to VB .NET with Visual Studio .NET's built-in
translator, but it will leave many things to be done manually. Then, I've
heard that guys from www.icsharpcode.com are working on a VB .NET -> C#
translator, so you might want to check it out.

Anyway, I would like you to realize that this is not just the matter of
syntax. Microsoft .NET's programming paradigm is completely different from
the VB6 one, so even with an ideal language syntax translator, you will most
likely to redesign the application - and this is a task no translator will
be able to do in foreseable future.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Tom" <(E-Mail Removed)> wrote in message
news:22dd401c38bfc$944a42a0$(E-Mail Removed)...
> Hi,
>
> I built an application with VB many years ago and I want
> to use C# and dot net framework now.
>
> How can I convert the VB6 code to C#? Do I need to firstly
> convert VB6 code to VB.net and then convert VB.net to
> C#.net?
>
> If so, could anyone recommend those 2 translators?
>
> Thanks


 
Reply With Quote
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      6th Oct 2003
Hi,

http://scottwater.com/blog/posts/142.aspx
http://www.immunicode.com/products.aspx

Ken
--------------
"Tom" <(E-Mail Removed)> wrote in message
news:22dd401c38bfc$944a42a0$(E-Mail Removed)...
> Hi,
>
> I built an application with VB many years ago and I want
> to use C# and dot net framework now.
>
> How can I convert the VB6 code to C#? Do I need to firstly
> convert VB6 code to VB.net and then convert VB.net to
> C#.net?
>
> If so, could anyone recommend those 2 translators?
>
> Thanks



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      6th Oct 2003
"Tom" <(E-Mail Removed)> scripsit:
> I built an application with VB many years ago and I want
> to use C# and dot net framework now.
>
> How can I convert the VB6 code to C#? Do I need to firstly
> convert VB6 code to VB.net and then convert VB.net to
> C#.net?
>
> If so, could anyone recommend those 2 translators?


VB6 -> VB.NET -> C#:

<http://www.ellkay.com/ConvertVB2CSharp.htm>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Columns of Sensitive Information, and then convert back... =?Utf-8?B?V2lsbGlhbSBFbGVyZGluZw==?= Microsoft Excel Programming 1 12th Oct 2006 09:37 PM
IsNumeric: Convert.ToInt32 vs. Convert.ToInt64 sck10 Microsoft ASP .NET 4 3rd Sep 2006 10:40 PM
Convert file to binary, send it over the network, and convert it b =?Utf-8?B?Q2hld2ll?= Microsoft Dot NET 0 9th Sep 2005 06:04 PM
Convert file to binary, send it over the network, and convert it b =?Utf-8?B?Q2hld2ll?= Microsoft Dot NET Framework 1 9th Sep 2005 06:01 PM
convert decimal number to time : convert 1,59 (minutes, dec) to m =?Utf-8?B?YWdlbmRhOTUzMw==?= Microsoft Excel Misc 8 20th Jan 2005 10:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:23 AM.