Hallo,
ich bastle momentan an einer Möglichkeit Anwendungen mit der vbc.exe zu kompilieren.
Momentan bin ich so weit:
Es gibt nun zwei Probleme, zum einen wird die Timer1_Tick Sub nicht aufgerufen, zum anderen beendet sie die Anwendung automatisch. Dies lässt sich nur mit der While True unterbinden, da es keine Console gibt und ich auch keine möchte, kann ich kein Console.ReadLine() Verwenden.
Die Anwendung wird wie folgt kompiliert:
Hat jemand einen Tip, wie die beiden gennanten Probleme unterbunden werden könnten?
ich bastle momentan an einer Möglichkeit Anwendungen mit der vbc.exe zu kompilieren.
Momentan bin ich so weit:
VB.NET-Quellcode
- Imports System.Windows.Forms
- Imports System.Runtime.InteropServices
- Imports System.IO
- Module Module1
- Private i As Integer = 0
- Friend WithEvents Timer1 As New System.Windows.Forms.Timer
- Sub Main()
- MsgBox("hallo")
- Timer1.Interval = 10
- Timer1.Enabled = True
- While True
- End While
- End Sub
- Public Sub Timer1_Tick_1(sender As Object, e As EventArgs) Handles Timer1.Tick
- MsgBox("hallo")
- i += 1
- File.WriteAllText("C:\TEMP\" & i & ".txt", "Hallo" & i)
- End Sub
- End Module
Es gibt nun zwei Probleme, zum einen wird die Timer1_Tick Sub nicht aufgerufen, zum anderen beendet sie die Anwendung automatisch. Dies lässt sich nur mit der While True unterbinden, da es keine Console gibt und ich auch keine möchte, kann ich kein Console.ReadLine() Verwenden.
Die Anwendung wird wie folgt kompiliert:
Hat jemand einen Tip, wie die beiden gennanten Probleme unterbunden werden könnten?
Intel i7-4710HQ |Nvidia GTX 860M | 1TB SSHD| 8GB RAM 1600Mhz
Intel Core Duo2 | 320GB | 4 GB RAM | Linux Debian
AMD E-350 | 320GB| 6GB RAM
Intel Core Duo2 | 320GB | 4 GB RAM | Linux Debian
AMD E-350 | 320GB| 6GB RAM