473,405 Members | 2,282 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,405 software developers and data experts.

VB to .Net migration

Hi,
We are planning to migrate one VB project to .Net. But I have a common
questions. can any one clarify my below questions.
1. Is there is any advantage of using C# than VB.net. I feel both are same
in terms of performance, security and etc., Is it correct?

2. I feel that converting from VB to VB.net is much more easier than VB to
C#. Is it correct?

3. Is there is any free tools available in any site which i can use to
convert it from VB to .Net (ofcourse i will do manual code fix as well).
Thanks in advance
Oct 27 '06 #1
4 1485
Note: Opinions :)

1. Technically, not that I'm aware of; they're both equal, it's what you're
most comfortable with. (http://www.google.com/search?hl=en&l...ntages+to+c%23)
can provide some insight, though most of the top references are a few years
old. The advantage to .NET is that if you have a development team and one
is verse in VB and another in C#, they can still work together without too
much trouble--though standardization is important in an enterprise.

2. Probably, the syntax is somewhat the same from 6.0 to .NET whereas C#'s
formatting and syntax (and some commands) are different.

3. Google is your friend. http://www.google.com/search?hl=en&q=convert+vb+to+c%23
turns up 3,650,000 results today and a few are free online and client-based
tools for the conversion. Something to consider, import your project into
Visual Studio and add the Microsoft.VisualBasic namespace and then rebuild
from there, finding each part that still calls that namespace, but without
breaking the application (maybe).

You can find information on the namespace at http://msdn2.microsoft.com/en-us/lib...sualbasic.aspx.

Hope this helps. :)

--
David Longnecker
Web Developer
http://blog.tiredstudent.com
Hi,
We are planning to migrate one VB project to .Net. But I have a
common
questions. can any one clarify my below questions.
1. Is there is any advantage of using C# than VB.net. I feel both are
same in terms of performance, security and etc., Is it correct?

2. I feel that converting from VB to VB.net is much more easier than
VB to C#. Is it correct?

3. Is there is any free tools available in any site which i can use to
convert it from VB to .Net (ofcourse i will do manual code fix as
well).

Thanks in advance

Oct 27 '06 #2
Mine are Opinions also:

1. see http://www.codeproject.com/dotnet/CSharpVersusVB.asp

2. The issue with this is that you bring bad habits with you.
Making a clean break to something that doesn't allow bad habits would pay
off more down the road.

3. You really don't want to do this. adodb recordset is no longer the
datatool, but converters will bring it forward.
DataSet, Strongly Typed DataSets, and IDataReaders are the "new" way.

..................................

I've programmed in VB since VB4/16bit, VB5, VB6. I programmed in VB.NET for
2 or more years.
I"ve programmed in C# for over 3 years.

Yes, I made a living for over 6 years off of VB(classic). While VB.Net is
OO capable, alot of (not all) bring some bad vb6, non OO, habits with them.

My advice is to make the clean break...... and don't try to half way do it.

Also, there are deficiencies in VB.NET (1.1 specifically).
Go here and read the entry from me.
http://groups.google.com/groups/sear...commentary.%22
This is a "concrete" no commentary list. As in , I try to just state the
facts.
"Kannan" <Ka****@discussions.microsoft.comwrote in message
news:21**********************************@microsof t.com...
Hi,
We are planning to migrate one VB project to .Net. But I have a common
questions. can any one clarify my below questions.
1. Is there is any advantage of using C# than VB.net. I feel both are same
in terms of performance, security and etc., Is it correct?

2. I feel that converting from VB to VB.net is much more easier than VB to
C#. Is it correct?

3. Is there is any free tools available in any site which i can use to
convert it from VB to .Net (ofcourse i will do manual code fix as well).
Thanks in advance


Oct 27 '06 #3
Regarding #1, you are correct.

Regarding #2, I highly recommend not trying to do 2 conversions at the same
time. Upgrade to VB.NET first (using the upgrade wizard + a lot of blood,
sweat, and tears). Then once the project is happily humming along in VB.NET,
take a look at whether you still want to think about converting to C#
(although as others have mentioned, it won't be for performance reasons).
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
Instant Python: VB to Python converter
"Kannan" wrote:
Hi,
We are planning to migrate one VB project to .Net. But I have a common
questions. can any one clarify my below questions.
1. Is there is any advantage of using C# than VB.net. I feel both are same
in terms of performance, security and etc., Is it correct?

2. I feel that converting from VB to VB.net is much more easier than VB to
C#. Is it correct?

3. Is there is any free tools available in any site which i can use to
convert it from VB to .Net (ofcourse i will do manual code fix as well).
Thanks in advance

Oct 27 '06 #4

"Kannan" wrote...
We are planning to migrate one VB project to .Net.
But I have a common questions. can any one clarify
my below questions.
You will probably have many different answers to your questions, but here's
my 2c.
1. Is there is any advantage of using C# than VB.net.
That depends on what you mean by "advantage".
I feel both are same in terms of performance, security
and etc., Is it correct?
In general terms, yes.
2. I feel that converting from VB to VB.net is much more easier
than VB to C#. Is it correct?
Yes and no, and I would lean more towards a No...

For some basic constructs it should be very easy to just "cut'n paste" the
old code, but for the rest, where the real difference between old VB and
VB.Net lies, many developers say that it's better to change the language
altogether, so they don't *think* that VB.NET is just an upgrade of old VB.
3. Is there is any free tools available in any site which i can use to
convert it from VB to .Net (ofcourse i will do manual code fix as well).
There are *many* free tools for it out there, but the change from old VB to
..NET is not only a change of languages, it's also a change in the thinking
on how to program. These tools don't do the OOAD[*] for you...

To convert old VB to .NET in a way that makes use of .NET fully, I would
suggest that you do *most* of it manually. Start with OOAD first, to make a
skeleton of what the application should look like in terms of classes,
methods, etc.

Then you can try to "map" the old code to the new design, and maybe use
those tools to convert the parts of the old code that still are useful "bit
by bit".

But you will also probably see, that it's a possibility that in the end
there's not much of the old code that will be needed in the "converted"
application...

A common mistake for many of those that switch from another language, is to
try to fit the old way of doing things into the new language/framework,
instead of focusing on what you want the application to do, and make use of
the new language/framework's advantages to the full.
/// Bjorn A
[*] OOAD - Object-oriented Analysis and Design.

Oct 29 '06 #5

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

Similar topics

9
by: Paddy McCarthy | last post by:
Frustrated at being prevented from using Python at work I went gunning for Perl. Time to roll out some useless Google statistics to make me feel better Google Phrase count...
4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
11
by: Jep | last post by:
Any help or advice appreciated. We have just installed and configured a new DB2 v.8.1 with latest FixPack. Just a few days later it dies and now we have a DB that is totally unusable. - - - -...
4
by: Abram Friesen | last post by:
Hi, I'm a developer for a software application vendor, and our application makes use of a customer-maintained Oracle 8i/9i database. We've had a customer request to support DB2 database, and I'm...
1
by: sac | last post by:
I am using DB2 v8.1 on UNIX. A few weeks ago the DBAs carried out node migration activity on the database. After the node migration I observed that the queries that execute on temporary tables...
1
by: rob | last post by:
Dear All, I have a very small test project to convert asp to asp.net using the Microsoft/Artisan ASP to ASP.NET Migration Assistant...
1
by: Bonggoy Cruz | last post by:
We have a fairly big size ASP.NET web application that was written VB.NET. We are in the process converting the web project. We used the migration wizard included in VS 2005. I followed step by...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
9
by: Troels Arvin | last post by:
At work, some people have found IBM's Migration Toolkit (MTK) to be a nice tool for copying data from one table (in another DBMS product) to DB2. Now, they want to do the same thing from one DB2...
3
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.