[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

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?
0
Justin Alcorta
Asked:
Justin Alcorta
1 Solution
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now