2012-07-17 47 views
1

這是我第一次使用升級的評估工具,它給我,當執行分析以下錯誤:在分析過程中發生的Microsoft Visual Basic 6.0升級評估工具錯誤

問題。請檢查以下錯誤消息:

未將對象引用設置爲對象的實例。

你想退出嗎?

這裏是我的代碼,我在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框架1.1

+0

您可能需要安裝VB6 IDE才能使用該升級評估。我不記得副手,我沒有安裝在這個Android手機:) – MarkJ 2012-07-17 19:36:16

+0

VB6 IDE。我不知道從哪裏下載。我從CD下載了一個軟件。根據我的理解,它擁有運行該工具所需的一切。 – Ish 2012-07-18 13:07:54

回答

2

Microsoft要求說明需要VB6。這可能僅僅意味着運行,但... Visual Basic 6.0 to Visual Basic .NET Upgrade Assessment Tool

+1

我不確定你想說什麼。 – Ish 2012-07-18 13:06:26

+0

@Ish點擊鏈接並將列出的要求與您的設置進行比較。有一個Visual Basic運行時安裝可用於安裝運行Visual Basic應用程序所需的文件(Dll),但是我相信您將需要安裝Visual Basic 6,而不僅僅是運行時。我發佈了鏈接,以便您可以看到其他要求。 – jac 2012-07-18 15:11:55

+1

+1 Beaner說你需要安裝VB6 IDE。 VB6編譯器和編輯器。你首先必須用VB6開發代碼(在你的問題中說你開發了這個VB6代碼)。或者[這裏](http://stackoverflow.com/a/8029361/15639)是一些你可以得到它的地方。 – MarkJ 2012-07-18 15:33:57

1

此外VB6的需求,該工具具有一個將msvcp71.dll依賴,這是屬於Microsoft C運行庫的模塊。

確保你有這個模塊或在互聯網上的某個地方(我剛剛從dll-files.com下載),然後複製到c:\ windows \ system32。

您還需要安裝Excel 2003,該工具使用該工具生成報告。