-2

Newこのコードを修正するのに助けが必要です:

 If (Me.OpenFileDialog1.FileName <> "Open your .ico file") Then
        New EthernalCompiler() With { _
            .Source = Me.txtSource.Text.Replace("3jkf0dks0", Me.txtPanelId.Text), _
            .Target = Target.Console, _
            .References = New String() { "System.dll", "mscorlib.dll", "System.Core.dll" }, _
            .Icon = Me.OpenFileDialog1.FileName _
        }.Compile(Me.txtFileName.Text)
    Else
        MessageBox.Show("Please select an icon", "Icon")
    End If

誰かがこれを修正できれば、それは素晴らしいことです:)

4

1 に答える 1

1

あなたはこのようにそれを試すことができます:

Dim oCompiler as EthernalCompiler = New EthernalCompiler() With { _
            .Source = Me.txtSource.Text.Replace("3jkf0dks0", Me.txtPanelId.Text), _
            .Target = Target.Console, _
            .References = New String() { "System.dll", "mscorlib.dll", "System.Core.dll" }, _
            .Icon = Me.OpenFileDialog1.FileName _
        }.Compile(Me.txtFileName.Text)

oCompiler.Compile(Me.txtFileName.Text)
于 2013-08-15T16:19:44.957 に答える