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
GodPlayer - mMain.bas

mMain.bas

Caricato da: Natamas
Scarica il programma completo

  1. Attribute VB_Name = "mMain"
  2. Option Explicit
  3.  
  4. Public Type tagInitCommonControlsEx
  5.    lngSize As Long
  6.    lngICC As Long
  7. End Type
  8. Public Declare Function InitCommonControlsEx Lib "comctl32.dll" (iccex As tagInitCommonControlsEx) As Boolean
  9. Public Const ICC_USEREX_CLASSES = &H200
  10.  
  11. Public Sub Main()
  12. On Error Resume Next
  13. Call LimitaAvvio(App.Title & " è già in funzione!")
  14.    Dim iccex As tagInitCommonControlsEx
  15.    With iccex
  16.        .lngSize = LenB(iccex)
  17.        .lngICC = ICC_USEREX_CLASSES
  18.    End With
  19.    InitCommonControlsEx iccex
  20.    On Error GoTo 0
  21.    Avvio.Show
  22.    Load GoddevaderMain
  23.    GoddevaderMain.Visible = False
  24.    
  25. End Sub
  26.  
  27. Sub LimitaAvvio(messaggio As String)
  28. On Local Error GoTo errore
  29. If App.PrevInstance Then
  30.     MsgBox messaggio, vbExclamation, App.Title
  31.     End
  32. End If
  33. Exit Sub
  34. errore:
  35. End
  36. End Sub