Visual Basic 6.0 compatiblity

We purchased a product that was written in VB 6.0 and I was wondering if i could take that project and import it into the latest version of Visual Studio 2008?  Is this possible and what problems could i run into?  Or should i just purchase VB 6.0?
LVL 1
Justin AlcortaEnterprise Systems AnalystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PaulHewsCommented:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim HexArray() As String = {"0x40", "0x08", "0x04", "0x02"}
        Dim IntResult As Integer
        For i As Integer = 0 To HexArray.GetUpperBound(0)
            IntResult += Integer.Parse(HexArray(i).Substring(2), Globalization.NumberStyles.HexNumber)
        Next
        MsgBox(String.Format("Result is {0}", IntResult))

    End Sub
End Class
0
PaulHewsCommented:
Sorry, I've posted to the wrong window.
0
PaulHewsCommented:
>I was wondering if i could take that project and import it into the latest version of Visual Studio 2008?  Is this possible and what problems could i run into?  Or should i just purchase VB 6.0?

For the most part, any serious project in VB6 will require a rewrite to bring it into VB.NET.  There is a wizard you can use to import vb6 code, but there are many items that the wizard will not do well.   To do it well, you will need to rewrite.

VB.NET contains significant advantages to VB6, but if you have everything you need in the existing project, you might consider keeping it in VB6.  
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Justin AlcortaEnterprise Systems AnalystAuthor Commented:
Can VB6 run on Vista?
0
Éric MoreauSenior .Net ConsultantCommented:
>>Can VB6 run on Vista?

with some problems (like older version of Crystal Reports). It is recommended that you run VB6 into a virtual PC session running XP.
0
RajendraDewaniCommented:
it is recommanded you buy Visual Studio 2008

As in near future vb6 programmer will be very difficult to find. and many of the vb6 application does not work in vista and need introp.

With Regards
Rajendra Dewani ( Team Leader)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.