Link to home
Start Free TrialLog in
Avatar of Justin Alcorta
Justin AlcortaFlag for United States of America

asked on

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?
Avatar of PaulHews
PaulHews
Flag of Canada image

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
Sorry, I've posted to the wrong window.
ASKER CERTIFIED SOLUTION
Avatar of PaulHews
PaulHews
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Justin Alcorta

ASKER

Can VB6 run on Vista?
Avatar of Éric Moreau
>>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.
Avatar of RajendraDewani
RajendraDewani

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)