Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Convert VB6 projects to C#, Is it possible?

0 views
Skip to first unread message

Mota das Neves

unread,
Aug 30, 2001, 7:57:45 AM8/30/01
to
Hi,


I'd like to know if it is possible to convert VB6 projects to C# and how if
it is possible. And wich diferences/adavantages exist betwen VB.NET and C#
only in terms of technical perspective not preferences betwen one or the
other....

THNKS


Jim Ma

unread,
Aug 30, 2001, 6:22:26 PM8/30/01
to
I heard that you will be able to convert VB.Net to C#. That means you have
to convert to VB.Net first. I think it's still a big pain.

Jim
"Mota das Neves" <mota.da...@clix.pt> wrote in message
news:#Vh3htUMBHA.1572@tkmsftngp03...

Robert Svilpa

unread,
Sep 4, 2001, 5:00:11 PM9/4/01
to
Hello Mota,
I dont believe that there is any wizard presently or planned for in the
future which will do this for you... You will have to write the code by
hand. This can be tricky, particularly if your VB6 code uses late binding
extensively. You can do some of that in C# using reflection (e.g.:
Object.GetType()) but otherwise the syntax is completely different. In the
matter of the wizard, VS7 has an object model with macro recording and
editing which will allow you to write your own parser which can take the
code and do syntax substitutions. But again, since the syntax is quite
different this will be extremely difficult to do and fraught with peril :O

As JimMa mentioned in the other reply, you might be best to convert to VB7,
then take the modules which are in the project and convert those to C#.
Doing the conversion manually in this way will give you more since VB.NET
will have the namespaces used in the module code, and then it will just be a
matter of converting language syntax instead of doing a complete rewrite
from scratch.

regards,
Robert Svilpa
Software Design Engineer in Test,
Managed Extensions for C++
Microsoft Corporation


"Mota das Neves" <mota.da...@clix.pt> wrote in message
news:#Vh3htUMBHA.1572@tkmsftngp03...

0 new messages