"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.