Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
ASM Compiler - Form1.frm

Form1.frm

Caricato da:
Scarica il programma completo

  1. Private Declare Function InitCommonControls Lib "Comctl32.dll" () As Long
  2.  
  3. Private Sub Command1_Click()
  4. If Text1.Text = "" Then
  5.   MsgBox "Inserire il nome del file", vbInformation
  6. ElseIf Right(Text1.Text, 3) = "obj" Then
  7.   MsgBox "File non valido! Inserire il file .asm!", vbInformation
  8. ElseIf Right(Text1.Text, 3) <> "asm" And Right(Text1.Text, 3) <> "obj" Then
  9.   MsgBox "Inserire il file .asm o il file .obj", vbInformation
  10. Else
  11.   Shell "C:\TASM\BIN\TASM.exe " & Text1.Text
  12. End If
  13. End Sub
  14.  
  15. Private Sub Command2_Click()
  16. If Text1.Text = "" Then
  17.   MsgBox "Inserire il nome del file", vbInformation
  18. ElseIf Right(Text1.Text, 3) = "asm" Then
  19.   MsgBox "File non valido! Inserire il file .obj!", vbInformation
  20. ElseIf Right(Text1.Text, 3) <> "asm" And Right(Text1.Text, 3) <> "obj" Then
  21.   MsgBox "Inserire il file .asm o il file .obj", vbInformation
  22. Else
  23.   Shell "C:\Tasm\BIN\Tlink.exe " & Text1.Text
  24. End If
  25. End Sub
  26.  
  27. Private Sub Command3_Click()
  28. If Text1.Text = "" Then
  29.   MsgBox "Inserire il nome del file", vbInformation
  30. ElseIf Right(Text1.Text, 3) = "obj" Then
  31.   MsgBox "File non valido! Inserire il file .asm!", vbInformation
  32. ElseIf Right(Text1.Text, 3) <> "asm" And Right(Text1.Text, 3) <> "obj" Then
  33.   MsgBox "Inserire il file .asm o il file .obj", vbInformation
  34. Else
  35.   Shell "C:\Tasm\BIN\Tasm32.exe " & Text1.Text
  36. End If
  37. End Sub
  38.  
  39. Private Sub Command4_Click()
  40. If Text1.Text = "" Then
  41.   MsgBox "Inserire il nome del file", vbInformation
  42. ElseIf Right(Text1.Text, 3) = "asm" Then
  43.   MsgBox "File non valido! Inserire il file .obj!", vbInformation
  44. ElseIf Right(Text1.Text, 3) <> "asm" And Right(Text1.Text, 3) <> "obj" Then
  45.   MsgBox "Inserire il file .asm o il file .obj", vbInformation
  46. Else
  47.   Shell "C:\Tasm\BIN\Tlink32.exe " & Text1.Text
  48. End If
  49. End Sub
  50.  
  51. Private Sub Command5_Click()
  52. CommonDialog1.Filter = "Assembly (*.asm)|*.asm|" _
  53.                      & "Object (*.obj)|*.obj|" _
  54.                      & "Tutti i file |*.*|"
  55. CommonDialog1.ShowOpen
  56. Text1.Text = CommonDialog1.FileName
  57. End Sub
  58.  
  59. Private Sub Form_Initialize()
  60. Dim x As Long
  61. x = InitCommonControls
  62. End Sub
  63.  
  64. Private Sub Form_Load()
  65. Form1.Caption = "ASM Compiler - ver. " & App.Major & "." & App.Minor & "." & App.Revision
  66. End Sub