Microsoft Visual Basic 6.0升级评估工具错误

时间:2012-07-17 13:55:00

标签: vb6 vb6-migration

这是我第一次使用升级评估工具,在执行分析时出现以下错误:

  

分析期间出现问题。请检查以下错误消息:

     

对象引用未设置为对象的实例。

     

你想退出吗?

这是我在VB 6.0中开发的代码

Private Sub Command1_Click()
Dim line As String

Dim name As String
name = Text1.Text

If Text1.Text = Null Or Text1.Text = "" Then
MsgBox ("Please enter your name")
Else
    MsgBox ("Welcome, " + Text1.Text)
    If Option1.Value = True Then
    line = "Admin"
    MsgBox (name + ", you have selected the following items " + line)

    ElseIf Option2.Value = True Then
    line = "User"
    MsgBox (name + ", you have selected the following items " + line)

    Else
    MsgBox ("You have not selected any options! Please select one of the options given in the right panel")
    End If
'
End If

End Sub

我也试过一个简单的hello world应用程序,但它仍然给我同样的错误。 注意:我的计算机上没有Visual Studio。 我使用的是Windows XP。 Vb 6.0。 .Net framework 1.1

2 个答案:

答案 0 :(得分:2)

Microsoft要求声明需要VB6。这可能只意味着运行时,但...... Visual Basic 6.0 to Visual Basic .NET Upgrade Assessment Tool

答案 1 :(得分:1)

除了VB6的要求之外,此工具还与msvcp71.dll存在依赖关系,msvcp71.dll是属于Microsoft C运行时库的模块。

确保您拥有该模块或将其放在互联网上(我刚刚从dll-files.com下载),然后复制到c:\ windows \ system32。

您还需要安装Excel 2003,该工具用于生成报告。